Skip to content

donovan-said/template-go-github-repository

Template Go Github Repository

A repository to use as a template for Go repositories.

Requirements

Tool Description
Go This has been tested on go1.22.5 darwin/arm64

Setup

Initialize

  • go mod init github.com/donovan-said/template-go-github-repository
  • go mod tidy

N.b. The tools.go file is used to define all dev requirements for this package. These aren't included in the build binary. See Go Docs - Build Constraints for more information.

VSCode

The .vscode settings have be configured for a base go setup.

Makefile

The Makefile is used for all linting, testing and build tasks. For the purpose of this template, it only manages dependencies and linting.

N.b. The Makefile is also run via the .pre-commit-config.yaml. See the CONTRIBUTING.md docs for more information on setting this up.

Project Structure

Please see GitHub - golang-standards - project-layout

About

A repository to use as a template for go repositories.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published