We are very sorry Gophers, but other names for the generator where taken, so we choose
create-go
.
- Boilerplate for apps and libraries
- task as task runner
- dep as dependency management tool (also Go 1.11 Modules are supported)
- VS Code as editor support
- EditorConfig
- Travis
- Boilerplate files (e.g.
README
,TODO
) - ... and opinionated
First, you have to install yo
, as to use any Yeoman Generator.
npm i -g generator-create-go
Create your project in the $GOPATH
.
mkdir $GOPATH/src/<username>/your-new_app && cd $_
yo create-go <your_app>
you can also omit the app name, it then refers to the current directory
Have fun!
We can highly recommend to consult the Yeoman Guide to write your own Yeoman Generator. Most importantly, to use the generator locally, you have to npm link
the generator.
See https://github.com/andersnormal/generator-create-go/tree/master/src for all available sub-generators.