Skip to content

blalor/go-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An opinionated template for Go projects

Fully isolated from other Go environments with Go Modules.

setup

  1. Bootstrap your project:
    curl -L -s https://github.com/blalor/go-template/archive/master.tar.gz | tar -xz --strip-components=1
  2. Write tests
  3. Write code
  4. Profit

make targets

  • all (default) -- runs tests and builds stage/$(NAME)
  • rpm -- builds an RPM with fpm

features

  • go-flags for command-line option parsing
  • logrus for logging (because log is too simplistic)
  • ginkgo for BDD tests
  • testify for mocks, which isn't great, but is better than nothing

credits