(m int)
| 27 | } |
| 28 | |
| 29 | func FromModelType(m int) ModelType { |
| 30 | switch m { |
| 31 | case 0: |
| 32 | return ModelTypeOnline |
| 33 | case 1: |
| 34 | return ModelTypeLocal |
| 35 | default: |
| 36 | return "" |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | type API struct { |
| 41 | Id string `json:"id"` |
nothing calls this directly
no outgoing calls
no test coverage detected