MCPcopy
hub / github.com/go-yaml/yaml / must

Method must

encode.go:84–92  ·  view source on GitHub ↗
(ok bool)

Source from the content-addressed store, hash-verified

82}
83
84func (e *encoder) must(ok bool) {
85 if !ok {
86 msg := e.emitter.problem
87 if msg == "" {
88 msg = "unknown problem generating YAML content"
89 }
90 failf("%s", msg)
91 }
92}
93
94func (e *encoder) marshalDoc(tag string, in reflect.Value) {
95 e.init()

Callers 4

emitMethod · 0.95
slicevMethod · 0.95
emitScalarMethod · 0.95
nodeMethod · 0.95

Calls 1

failfFunction · 0.85

Tested by

no test coverage detected