/go_templates

Templates for common files/configs in Go projects

Primary LanguageNix

Templates for common files/configs in Go projects.

How to Use This Template

  1. Create a new repository based on this repository:
  • Go to this repository's page, click on the Use this template button and follow instructions.

    OR

  • With GitHub's CLI, run gh repo create NEW_REPOSITORY_NAME --template=dmarcoux/go_templates.

  1. Search for CHANGEME in the newly created repository to adapt it to your needs.

nix-shell for Go

Reproducible development environment for Go projects which relies on Nix, a purely functional and cross-platform package manager.

Usage

  1. Copy shell.nix at the root of your Go project.
  2. Add the content of .gitignore to your own .gitignore.
  3. Start with nix-shell --pure.