š scaffold - Awesome Go Library for Miscellaneous

Scaffold generates a starter Go project layout. Lets you focus on business logic implemented
š·ļø Miscellaneous
š Project Layout
ā 0 stars
Detailed Description of scaffold
scaffold
Scaffold generates starter Go project layout. Let you can focus on buesiness logic implemeted.
The following is Go project layout scaffold generated:
āāā Dockerfile
āāā Makefile
āāā README.md
āāā cmd
ā āāā main.go
āāā config
ā āāā config.go
ā āāā config.yml
ā āāā database.go
ā āāā http.go
ā āāā release.go
āāā docker-compose.yml
āāā model
ā āāā model.go
āāā web
āāā routes.go
āāā server.go
āāā version.go
Installation
Download scaffold by using:
$ go get -u github.com/catchplay/scaffold
Create a new project
- Going to your new project folder:
# change to project directory
$ cd $GOPATH/src/path/to/project
- Run
scaffold initin the new project folder:
$ scaffold init
- That will generate a whole new starter project files like:
Create Dockerfile
Create README.md
Create cmd/main.go
Create config/config.go
Create config/database.go
Create config/http.go
Create config/release.go
Create docker-compose.yml
Create model/model.go
Create web/routes.go
Create web/server.go
Create web/version.go
Create Makefile
Create config/config.yml
Success Created. Please excute `make up` to start service.
- And you can run the new project by using:
$ make run