Skip to content
simlun's Golang Project Template
Makefile Shell Dockerfile Go
Branch: go-template
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.template
go
scripts
tests/01-hello-world
.gitignore
LICENSE
Makefile
README.md

README.md

NAME_OF_PROJECT

Project Template

See .template/README.md.

Development

There are a few make commands that provides a development environment with lots of fast feedback to the developer. It's nice to have these running in terminal windows/panes next to your favorite editor:

  • make test-features-repeatedly - just hit the return key to build and run all the feature tests.
  • cd go
    • make test-continously to run the unit tests directly on file change.
    • make lint-continously to run the linter directly on file change.

Building

make build will compile Go binaries for all supported architectures.

Program Container Images

The go/Makefile.images file is for building slim Linux container images that run your program.

  • Build for all architectures:
    • make -f Makefile.images
  • Build only for AMD64:
    • make -f Makefile.images "image(amd64)"
  • Build only for ARM32v6 (Raspberry Pi 1 for example):
    • make -f Makefile.images "image(arm32v6)"
You can’t perform that action at this time.