MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / UnmarshalYaml

Function UnmarshalYaml

cli/pkg/docker/compose/util.go:32–35  ·  view source on GitHub ↗

解码Yaml文本

(content string, obj interface{})

Source from the content-addressed store, hash-verified

30
31// 解码Yaml文本
32func UnmarshalYaml(content string, obj interface{}) (err error) {
33 err = yaml.Unmarshal([]byte(content), obj)
34 return
35}

Callers 4

TestSecretSimpleFunction · 0.85
TestImageFunction · 0.85
TestPortSimpleFunction · 0.85
TestVolumeMapSimpleFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestSecretSimpleFunction · 0.68
TestImageFunction · 0.68
TestPortSimpleFunction · 0.68
TestVolumeMapSimpleFunction · 0.68