5 ms·
I wouldn’t mind type safe enums that take advantage of the good parts of Go, but the rest of the ideas are truly awful. enum Language { Arabic `j
by jagger27 5y ago
I wouldn’t mind type safe enums that take advantage of the good parts of Go, but the rest of the ideas are truly awful.
enum Language {
Arabic `json:"ar"`
English `json:"en"`
French `json:"fr"`
Spanish `json:"es"`
// ...
} `json:"language"`
That would be useful and Go-like.
- deleted 5y ago[deleted]