ParseOrgConfig will return an OrgConfig parsed from the given data. No additional validation is done.
(data []byte)
| 23 | // ParseOrgConfig will return an OrgConfig parsed from the given data. No |
| 24 | // additional validation is done. |
| 25 | func ParseOrgConfig(data []byte) (*OrgConfig, error) { |
| 26 | oc := NewOrgConfig() |
| 27 | |
| 28 | err := yaml.Unmarshal(data, oc) |
| 29 | if err != nil { |
| 30 | return nil, err |
| 31 | } |
| 32 | |
| 33 | return oc, nil |
| 34 | } |
no test coverage detected