Saturday, June 22, 2024
HomeGolangA sophisticated starter Golang Repository Template

A sophisticated starter Golang Repository Template

It is a

GitHub repository template for Golang.

It has been created for ease of use for anybody who needs to:

  • rapidly get into Go with out shedding an excessive amount of time on surroundings setup,
  • create a brand new repository with important Continous Integration.

It consists of:

  • continuous-integration by way of GitHub Actions,
  • dependency administration utilizing Golang Modules,
  • code formatting utilizing gofumpt,
  • linting with golangci-lint,
  • construct automation by way of Make,
  • unit testing with testify, race detector, code protection HTML report and Codecov report,
  • releasing utilizing GoReleaser,
  • dependencies scanning and updating because of Dependabot,
  • safety code evaluation utilizing CodeQL Motion,
  • Visible Studio Code configuration with Go and Distant Container help.

Star this repository for those who discover it precious and value sustaining.

Watch this repository to get notified about new releases, points, and so on.

Golang Undertaking Template Utilization

  1. Enroll on Codecov and configure Codecov GitHub Utility for all repositories.
  2. Click on the Use this template button (alt. clone or obtain this repository).
  3. Exchange all occurrences of golang-templates/seed with your_org/repo_name in all recordsdata.
  4. Exchange all occurrences of seed to repo_name in Dockerfile.
  5. Replace the next recordsdata:

Setup the Golang Improvement Surroundings

Under you could find pattern directions on the right way to arrange the event surroundings. In fact, you should use different instruments like GoLand, Vim, Emacs. Nevertheless, take discover that the Go workforce formally helps the Visible Studio Go extension.

Native Machine

Comply with these steps in case you are OK putting in and utilizing Go in your machine.

  1. Set up Go.
  2. Set up Visible Studio Code.
  3. Set up Go extension.
  4. Clone and open this repository.
  5. F1 -> Go: Set up/Replace Instruments -> (choose all) -> OK.

Golang Improvement Container

Comply with these steps if you don’t want to put in Golang in your machine and you like to make use of a Improvement Container as a substitute.



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments