4 ms·
interesting approach! but I typically use this method for type constraints. for enums I prefer just direct structs: https://github.com/nikolaydubina/go-enum-ex
by nikolayasdf123 3y ago
interesting approach! but I typically use this method for type constraints.
for enums I prefer just direct structs: https://github.com/nikolaydubina/go-enum-example https://github.com/nikolaydubina/go-enum-example