MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / mustMarshalYAML

Function mustMarshalYAML

internal/pluginhost/config.go:219–225  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

217}
218
219func mustMarshalYAML(v any) []byte {
220 raw, errMarshal := yaml.Marshal(v)
221 if errMarshal != nil {
222 return append([]byte(nil), defaultRuntimeConfigYAML...)
223 }
224 return raw
225}

Callers 1

runtimeConfigYAMLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected