Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: GoGen – A simple template-based file generator written in Go (github.com/zaheershaikh936)
2 points by zaheer9360 5 hours ago | hide | past | favorite | 1 comment
Hi HN, I recently open-sourced GoGen (https://github.com/zaheershaikh936/gogen), a tool to automate file generation using templates. I'm trying to grow the project and reach my first 10 contributors to get listed on various open-source directories. If you have 5 minutes, I'd love feedback on: The ease of use of the CLI. The roadmap (I'm planning to add nested templates and better variable support). I've marked a few issues as "Good First Issue" for anyone who wants to contribute to a small, fresh Go project.




Very cool, always love seeing adventures in codegen. If you want to see what something like this looks like after many years of development, after you discover all those day-2 issues in code gen at scale...

intro code gen docs: https://hofstadter.io/getting-started/code-generation/

core code gen package: https://github.com/hofstadter-io/hof/tree/_next/lib/gen

you'll likely want to move from printf to text/template and then put a schema on the input data, then put the templates as files on disk so you can iterate faster without needing to recompile the binary to adjust the code that comes out

btw, you contributed the built binary to your git repo




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: