Skip to content

Instantly share code, notes, and snippets.

@unders

unders/pkg.md Secret

Last active August 13, 2023 14:23
Show Gist options
  • Save unders/c326f46eb1e6d6e47af23803f47df7ed to your computer and use it in GitHub Desktop.
Save unders/c326f46eb1e6d6e47af23803f47df7ed to your computer and use it in GitHub Desktop.
Ultimate Go

Go

Install

go install golang.org/dl/go1.21.0@latest
go1.21.0 download

go1.21.0 version
go1.21.0 env GOROOT
which go1.21.0

export GOPATH="$HOME/go"
export PATH=$HOME/sdk/go1.21.0/bin:$PATH

Service veaver

go get github.com/ServiceWeaver/weaver@v0.19.0                # Update the weaver module.
go install github.com/ServiceWeaver/weaver/cmd/weaver@v0.19.0 # Update the weaver command line tool.

Tools

go install mvdan.cc/gofumpt@v0.5.0
go install github.com/daixiang0/gci@v0.11.0
go install github.com/go-critic/go-critic/cmd/gocritic@v0.9.0
go install golang.org/x/vuln/cmd/govulncheck@latest
go install github.com/go-task/task/v3/cmd/task@latest
go install github.com/ServiceWeaver/weaver/cmd/weaver@v0.19.0
go install golang.org/x/tools/cmd/gonew@latest
go install golang.org/x/tools/cmd/godoc@latest
go install golang.org/x/tools/gopls@latest
go install golang.org/x/tools/cmd/gomvpkg@latest
go install golang.org/x/tools/cmd/gorename@latest
go install golang.org/x/tools/cmd/gotype@latest
go install golang.org/x/tools/cmd/stringer@latest


go install github.com/rhysd/actionlint/cmd/actionlint@latest
go install oss.terrastruct.com/d2@latest
go install github.com/google/ko@latest

Nix

Install
curl -L https://nixos.org/nix/install | sh

nix-channel --add https://nixos.org/channels/nixpkgs-unstable
nix-channel --list
nix-channel --update
Upgrade
sudo -i sh -c 'nix-channel --update && nix-env --install --attr nixpkgs.nix && launchctl remove org.nixos.nix-daemon && launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist'
Install packages
nix-env -iA nixpkgs.devbox
nixpkgs.dagger
nixpkgs.direnv
nixpkgs.sop
nixpkgs.age
nixpkgs.go-2fa
nixpkgs.tree 
nixpkgs.git
nixpkgs.python39
nixpkgs.sqlite
nixpkgs.entr

Devbox

Install Devbox
curl -fsSL https://get.jetpack.io/devbox | bash

Github Actions


Docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment