4 ms·
There is an interesting tool on their github repo called go_generics[0]. It looks like it transforms a Go source file and writes out a new file, by doing name
by kyrra 9y ago
There is an interesting tool on their github repo called go_generics[0]. It looks like it transforms a Go source file and writes out a new file, by doing name replacement, prefixing/suffixing for variable, method, and class names.
[0] https://github.com/google/gvisor/blob/master/tools/go_generics/generics.go https://github.com/google/gvisor/blob/master/tools/go_generi...
- wjkohnen 9y agoThere are several open source Go projects out there that implement generics by templating. https://awesome-go.com/#generation-and-generics https://awesome-go.com/#generation-and-generics
- deleted 9y ago[deleted]