Skip to content

go lang project mod operations

  1. Sync dependencies in the mod

    Bash
    go get ./...
    
  2. Update dependencies

    Bash
    go get -u ./...
    
  3. Force update a dependency to a branch or a commit

    Bash
    go get -v -u github.com/<org>/<repo>@<branch or commit>