This is a Production Draft ¯\(ツ)/¯ , it has no tests, no CI, no docs, no examples, etc. It's just a proof of concept whit good intentions and charm.
This is an scaffold tool for adding functionality to Go projects.
It makes use of go-archetype for handling the templates.
- Go 1.23+
go install github.com/diegosz/garchetype@latest
Recommended: Pin the garchetype
tool to your project using bingo
. Do it via:
bingo get -l github.com/diegosz/garchetype@latest
Add a feature using an archetype:
./garchetype add -f example-app -- --salutation 'Hi, punk!'
🌱 Adding 'example-app' feature using 'hello-world' archetype.
📦 Using transformation file: xarchetype_godev_default/archetypes/hello-world/transformations-default.yaml
🎉 Feature 'example-app' added.
- Add tests.
- Add documentation.
- Add examples.
- Add continuous integration.
- go-archetype by rantav, many thanks!
- skaphos by bmfs, many thanks!