Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
75
func
(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
String
Method · 0.65
Marshal
Method · 0.45
Tested by
no test coverage detected