MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / String

Method String

module/release/dto/status.go:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18)
19
20func (s Status) String() string {
21 if s > 0 && s < statusMaxValue {
22 return names[s]
23 }
24 return names[0]
25}
26
27func (s Status) MarshalJSON() ([]byte, error) {
28 return json.Marshal(s.String())

Callers 2

MarshalJSONMethod · 0.95
CreateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected