Skip to content
/ go-template Public template

Starter VSCode Config for Go

Notifications You must be signed in to change notification settings

vrv501/go-template

Repository files navigation

go-template

Starter VSCode Config for Building Go Apps in a debian amd64 machine

Tools

  • Go Compiler: Download-Link

  • Install pre-requisite tools

    $ sudo apt install -y gcc make curl jq
  • Install golangci-lint

    $ tag_name=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/golangci/golangci-lint/releases/latest | jq -r .tag_name)
    $ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin "$tag_name"
  • Install mockgen

    $ tag_name=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/uber-go/mock/releases/latest | jq -r .tag_name)
    $ go install "go.uber.org/mock/mockgen@$tag_name"