Hi guys,
I’ve been doing some projects and have noticed that I was repeating myself a lot while creating new packages, so I’ve decided to create this simple package in order to bootstrap new packages. It creates this structure:
$ gootstrap new project_name
$ gootstrap new project_name
===> Creating package project_name
===> Creating directory
===> Creating .gitignore file
===> Creating .travis.yml file
===> Creating README.md
===> Creating LICENSE.txt file
===> Creating project_name.go file
===> Creating project_name_test.go file
===> Creating doc.go file
===> Package created! cd project_name to access.
$ cd project_name
|-- project_name
|-- .gitignore
|-- .travis.yml
|-- REAMDE.md
|-- LICENSE.txt
|-- project_name.go
|-- project_name_test.go
|-- doc.go
But it can be customized like this:
$ gootstrap new project_name --minimal
===> Creating package project_name
===> Creating directory
===> Creating project_name.go file
===> Creating project_name_test.go file
===> Creating doc.go file
===> Package created! cd project_name to access.
$ cd project_name
|-- project_name
|-- project_name.go
|-- project_name_test.go
|-- doc.go
Or even like this:
$ gootstrap new project_name --no-travis-lisence
===> Creating package project_name
===> Creating directory
===> Creating .gitignore file
===> Creating README.md
===> Creating project_name.go file
===> Creating project_name_test.go file
===> Creating doc.go file
===> Package created! cd project_name to access.
$ cd project_name
|-- project_name
|-- .gitignore
|-- REAMDE.md
|-- project_name.go
|-- project_name_test.go
|-- doc.go
The link is https://github.com/hgsigner/gootstrap
I hope it can be useful for someone as it is for me.
Best,
Hugo