Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/APIParkLab/APIPark
/ MarshalJSON
Method
MarshalJSON
service/permit-type/type.go:11–13 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
9
type
PermitType int
10
11
func
(p PermitType) MarshalJSON() ([]byte, error) {
12
return
json.Marshal(p.Name())
13
}
14
15
func
(p PermitType) Target(name string, label string) *Target {
16
return
&Target{
Callers
nothing calls this directly
Calls
2
Name
Method · 0.95
Marshal
Method · 0.80
Tested by
no test coverage detected