()
| 5 | type GravityType int |
| 6 | |
| 7 | func (gt GravityType) String() string { |
| 8 | for k, v := range GravityTypes { |
| 9 | if v == gt { |
| 10 | return k |
| 11 | } |
| 12 | } |
| 13 | return "" |
| 14 | } |
| 15 | |
| 16 | func (gt GravityType) MarshalJSON() ([]byte, error) { |
| 17 | for k, v := range GravityTypes { |
nothing calls this directly
no outgoing calls
no test coverage detected