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

Interface Marshaler

yaml.go:50–52  ·  yaml.go::Marshaler

The Marshaler interface may be implemented by types to customize their behavior when being marshaled into a YAML document. The returned value is marshaled in place of the original value implementing Marshaler. If an error is returned by MarshalYAML, the marshaling procedure stops and returns with t

Source from the content-addressed store, hash-verified

48// If an error is returned by MarshalYAML, the marshaling procedure stops
49// and returns with the provided error.
50type Marshaler interface {
51 MarshalYAML() (interface{}, error)
52}
53
54// Unmarshal decodes the first document found within the in byte slice
55// and assigns decoded values into the out value.

Callers 1

marshalMethod · 0.65

Implementers 2

marshalerTypeencode_test.go
failingMarshalerencode_test.go

Calls

no outgoing calls

Tested by

no test coverage detected