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

Method MarshalJSON

config/regexp.go:33–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33func (r Regexp) MarshalJSON() ([]byte, error) {
34 return []byte(`"` + r.String() + `"`), nil
35}
36
37func (r *Regexp) UnmarshalJSON(b []byte) error {
38 if len(b) == 0 {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected