Deprecated: Do not use.
(m map[int32]string, v int32)
| 55 | |
| 56 | // Deprecated: Do not use. |
| 57 | func EnumName(m map[int32]string, v int32) string { |
| 58 | s, ok := m[v] |
| 59 | if ok { |
| 60 | return s |
| 61 | } |
| 62 | return strconv.Itoa(int(v)) |
| 63 | } |
| 64 | |
| 65 | // Deprecated: Do not use. |
| 66 | func UnmarshalJSONEnum(m map[string]int32, data []byte, enumName string) (int32, error) { |