Last active
November 7, 2024 22:20
-
-
Save ozkansen/3cd2f03c360554d4301eddbcbff6edd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export GOTOOLCHAIN="go1.23.3" | |
export CGO_ENABLED="1" | |
export GOAMD64="v4" | |
export GOFLAGS="-ldflags=-s -ldflags=-w -trimpath -buildvcs=false -installsuffix=cgo" | |
export GOEXPERIMENT="newinliner" | |
export CGO_CFLAGS="-O3 -march=native" | |
go install golang.org/x/tools/gopls@latest | |
go install github.com/cweill/gotests/[email protected] | |
go install github.com/fatih/[email protected] | |
go install github.com/josharian/[email protected] | |
go install github.com/haya14busa/goplay/cmd/[email protected] | |
go install github.com/go-delve/delve/cmd/dlv@latest | |
go install github.com/golangci/golangci-lint/cmd/[email protected] | |
go install github.com/rakyll/hey@latest | |
go install github.com/air-verse/[email protected] | |
go install github.com/incu6us/goimports-reviser/[email protected] | |
go install github.com/vektra/mockery/[email protected] | |
go install github.com/dkorunic/betteralign/cmd/[email protected] | |
go install github.com/sqlc-dev/sqlc/cmd/[email protected] | |
go install -tags 'pgx5,mongodb,mysql,sqlite' github.com/golang-migrate/migrate/v4/cmd/migrate@latest | |
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | |
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest | |
go install github.com/goreleaser/goreleaser/v2@latest | |
go install mvdan.cc/[email protected] | |
go install github.com/mgechev/[email protected] | |
go install golang.org/x/vuln/cmd/govulncheck@latest | |
go install github.com/bufbuild/buf/cmd/[email protected] | |
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@latest | |
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@latest | |
go install honnef.co/go/gotraceui/cmd/gotraceui@latest | |
go install honnef.co/go/tools/cmd/staticcheck@latest |
file $(which gofumpt) | tr , "\n"
/home/xyz/go/bin/gofumpt: ELF 64-bit LSB executable
x86-64
version 1 (SYSV)
statically linked
Go BuildID=K193wgVNXemMBdNPpmag/TemxF1NdcW8eQCDzIrvL/O2MG6EsOq8cpWOiq2T6d/0mtnQ433T6rdOwFrN_ud
not stripped
file $(which golangci-lint) | tr , "\n"
/home/xyz/go/bin/golangci-lint: ELF 64-bit LSB executable
x86-64
version 1 (SYSV)
dynamically linked
interpreter /lib64/ld-linux-x86-64.so.2
BuildID[sha1]=7182c4bea5aebee102dc46882bb5dd8b4e70df6c
for GNU/Linux 6.1.0
not stripped
ldd $(which gofumpt)
not a dynamic executable
ldd $(which golangci-lint)
linux-vdso.so.1 (0x00007b2da5780000)
libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007b2da573b000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007b2da5549000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007b2da5783000)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
go version -m $(which gofumpt)
go version -m $(which golangci-lint)