gen Go
Type-driven code generation for Go
gen is an attempt to bring some generics-like functionality to Go. It uses type annotations to add “of T” functionality to your packages. gen generates code for your types, at development time, using the command line. It is not an import; the generated source becomes part of your package and takes no external dependencies. Typewriters are where templates and logic live for generating code. Here’s set, which will make a lovely Set container for your type. Third-party typewriters are added easily...