0.1.5 • Published 3 years ago
generator-go v0.1.5
A non-opinionated golang code generator
A Yeoman generator for the golang programming language.
What is golang ?
See the Golang documentation
Why a generator ?
The Golang team defined guidelines to organize code and structure an application.
The generator builds a standard directory hierarchy complying with those guidelines.
Usage
- Install yeoman
$ npm install -g yo- Install the generator
$ npm install generator-go- Run the generator
$ yo goThat's all folks !
This will generate a minimalist directory hierarchy, a makefile and a .gitignore in your $GOPATH folder.
Once built, you can run your application
$ make runCompile sources and build binary
$ make installRun all tests
$ make testAnd clean up the binary
$ make cleanHow to contribute
Fork the project
Clone your forked project locally
$ git clone https://github.com/your_repo/generator-go.git
$ cd generator-goModify sources
Symlink the package folder
$ sudo npm link- Test your generator
$ yo go- Submit a pull request
This project welcomes all contributors, feel free to apply !
Dependencies
This project depends on