MCPcopy
hub / github.com/cloudflare/cloudflared / MarshalJSON

Method MarshalJSON

ingress/rule.go:75–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73}
74
75func (r *Regexp) MarshalJSON() ([]byte, error) {
76 if r.Regexp == nil {
77 return json.Marshal(nil)
78 }
79 return json.Marshal(r.Regexp.String())
80}

Callers

nothing calls this directly

Calls 2

StringMethod · 0.65
MarshalMethod · 0.45

Tested by

no test coverage detected