{"repo":"lacion/cookiecutter-golang","free":true,"listed":false,"github":"https://github.com/lacion/cookiecutter-golang","clone":"git clone https://github.com/lacion/cookiecutter-golang.git","description":"A Go project template","language":"Go","stars":736,"topics":["cookiecutter","cookiecutter-golang","golang","project-template"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"cookiecutter-golang Powered by Cookiecutter, Cookiecutter Golang is a framework for jumpstarting production-ready go projects quickly. Features - Generous Makefile with management commands - Uses go dep (with optional go module support requires go 1.11 ) - injects build time and git hash at build time. Optional Integrations - Can use viper for env var config - Can use cobra for cli tools - Can use logrus for logging - Can create dockerfile for building go binary and dockerfile for final go binary (no code in final container) - If docker is used adds docker management commands to makefile - Option of TravisCI, CircleCI or None Constraints - Uses dep or mod for dependency management - Only maintained 3rd party libraries are used. This project now uses docker multistage builds, you need at least docker version v17.05.0-ce to use the docker file in this template, you can read more about multistage builds here. Docker This template uses docker multistage builds to make images slimmer and containers only the final project binary and assets with no source code whatsoever. You can find the image dokcer file in this repo and more information about docker multistage builds in this blog post. Apps run under non root user and also with dumb-init. Usage Let's pretend you want to create a project called \"echoserver\". Rather than starting from scratch maybe copying some files and then editing the results to include your name, email, and various configuration issues that always get forgotten","default_branch":null,"files":null,"tree":[],"storefront":"/r/lacion","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lacion/cookiecutter-golang/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}