MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / MarshalYAML

Method MarshalYAML

crypto/hash/hash.go:152–154  ·  view source on GitHub ↗

MarshalYAML implements the yaml.Marshaler interface.

()

Source from the content-addressed store, hash-verified

150
151// MarshalYAML implements the yaml.Marshaler interface.
152func (h Hash) MarshalYAML() (interface{}, error) {
153 return h.String(), nil
154}
155
156// UnmarshalYAML implements the yaml.Unmarshaler interface.
157func (h *Hash) UnmarshalYAML(unmarshal func(interface{}) error) error {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected