Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
29
func
(r Regexp) MarshalYAML() (
interface
{}, error) {
30
return
r.String(), nil
31
}
32
33
func
(r Regexp) MarshalJSON() ([]byte, error) {
34
return
[]byte(`
"` + r.String() + `"
`), nil
Callers
nothing calls this directly
Calls
1
String
Method · 0.95
Tested by
no test coverage detected