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