Starter VSCode Config for Building Go Apps in a debian amd64 machine
-
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"