Skip to content

Commit

Permalink
Refactor: Extract type
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Oct 5, 2020
1 parent d5113e2 commit 95ff401
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/opencontrol/standard.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ import (
)

type Standard struct {
Name string `yaml:"name"`
Controls map[string]Control `yaml:",inline"`
Name string `yaml:"name"`
Controls Controls `yaml:",inline"`
}

type Controls map[string]Control

type Control struct {
Family string `yaml:"family"`
Name string `yaml:"name"`
Expand Down

0 comments on commit 95ff401

Please sign in to comment.