Skip to content

Commit

Permalink
refactor: go packages
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Nov 27, 2024
1 parent e74d2f0 commit a86d506
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ alias upgrade_env='upgrade_dotfiles; sh $DOTFILES/install.sh'

(( $+commands[cargo] )) && alias upgrade_cargo='cargo install-update -a' # cargo install cargo-update
(( $+commands[gem] )) && alias upgrade_gem='gem update && gem cleanup'
(( $+commands[go] )) && alias upgrade_go='GO111MODULE=on && $DOTFILES/install_go.sh'
(( $+commands[go] )) && alias upgrade_go='$DOTFILES/install_go.sh'
(( $+commands[npm] )) && alias upgrade_npm='for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f2); do npm -g install "$package"; done'
(( $+commands[pip] )) && alias upgrade_pip="pip list --outdated --format=json | python -c '
import json
Expand Down
11 changes: 6 additions & 5 deletions install_go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@

# Go packages
packages=(
golang.org/x/tools/gopls
golang.org/x/tools/cmd/goimports
honnef.co/go/tools/cmd/staticcheck
# Essential
# golang.org/x/tools/gopls
# github.com/go-delve/delve/cmd/dlv
# honnef.co/go/tools/cmd/staticcheck

golang.org/x/tools/cmd/goimports
# github.com/aarzilli/gdlv
github.com/zmb3/gogetdoc
github.com/go-delve/delve/cmd/dlv
github.com/aarzilli/gdlv
github.com/josharian/impl
github.com/cweill/gotests/...
github.com/fatih/gomodifytags
Expand Down

0 comments on commit a86d506

Please sign in to comment.