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

Function MarshalYaml

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

编码为Yaml格式

(obj interface{})

Source from the content-addressed store, hash-verified

24
25// 编码为Yaml格式
26func MarshalYaml(obj interface{}) string {
27 v, _ := yaml.Marshal(obj)
28 return string(v)
29}
30
31// 解码Yaml文本
32func UnmarshalYaml(content string, obj interface{}) (err error) {

Callers 3

TestImageFunction · 0.85
TestPortSimpleFunction · 0.85
TestVolumeMapSimpleFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestImageFunction · 0.68
TestPortSimpleFunction · 0.68
TestVolumeMapSimpleFunction · 0.68