MCPcopy Create free account
hub / github.com/belak/gitdir / ParseOrgConfig

Function ParseOrgConfig

models/org_config.go:25–34  ·  view source on GitHub ↗

ParseOrgConfig will return an OrgConfig parsed from the given data. No additional validation is done.

(data []byte)

Source from the content-addressed store, hash-verified

23// ParseOrgConfig will return an OrgConfig parsed from the given data. No
24// additional validation is done.
25func 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}

Callers 1

loadOrgConfigMethod · 0.92

Calls 1

NewOrgConfigFunction · 0.85

Tested by

no test coverage detected