Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
33
func
(r Regexp) MarshalJSON() ([]byte, error) {
34
return
[]byte(`
"` + r.String() + `"
`), nil
35
}
36
37
func
(r *Regexp) UnmarshalJSON(b []byte) error {
38
if
len(b) == 0 {
Callers
nothing calls this directly
Calls
1
String
Method · 0.95
Tested by
no test coverage detected