Skip to content

Skeleton is a bare bones starter pack for new golang projects.

Notifications You must be signed in to change notification settings

ashmckenzie/go-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skeleton

Skeleton is a bare bones starter pack for new golang projects. It includes the following features:

  • Skeleton main.go with command line parsing and version support
  • Basic tests to show the way
  • Support for:
  • Makefile's for:
    • Running tests
    • Building - native and cross compilation
    • Managing go dependencies (through govendor)
    • Docker image generation and registry push
    • Docker debugging (shell and attach)
  • Sensible .gitignore and .dockerignore

How to use

  1. Checkout this repo into a new directory
cd /tmp
git clone https://github.com/ashmckenzie/go-skeleton new-app
  1. Remove the .git directory to ensure no history from go-skeleton is retained

  2. Edit .envrc and replace any <CHANGE-ME-XXX> as required

  3. Either setup direnv to work with your shell, or if not, run

source .envrc
  1. Ensure govendor is installed
cd app
make install_govendor
  1. Run make in either
  • The root directory to create a Docker image
  • The app directory to compile as ./bin/<project_name>
  1. Enjoy :)

Useful links

About

Skeleton is a bare bones starter pack for new golang projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published