MCPcopy Create free account
hub / github.com/Monibuca/engine / MarshalYAML

Method MarshalYAML

config/regexp.go:29–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func (r Regexp) MarshalYAML() (interface{}, error) {
30 return r.String(), nil
31}
32
33func (r Regexp) MarshalJSON() ([]byte, error) {
34 return []byte(`"` + r.String() + `"`), nil

Callers

nothing calls this directly

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected