Giter Site home page Giter Site logo

gvs's Introduction

Go Version Selector (GVS)

GVS automatically determines and executes only the main Go version, but GVS does not manage tools by versions.

Install

  1. Download binary from releases and create path.
  2. Run the following command.
gvs init

# Add PATH
# export PATH="$HOME/.gvs/bin:$PATH"

gvs use 1.22
go version

Version Determination

  1. read .go-version in current path.
  2. read go field of go.work in current path.
  3. read go field of go.mod in current path.
  4. go to the parent directory. Back to 1. If there are no more parents, Go to 5.
  5. read global version file($HOME/.gvs/version)

Install Global Tool

If you want to install a tool in a global version instead of a local version, you can use the global version with the following command.

gvs install golang.org/x/tools/cmd/goimports@latest

Usage

Usage:
  gvs [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  download    Download specify version of Go
  help        Help about any command
  init        Initialize gvs
  install     install tools by global Go version
  run         Run command(go or gofmt)
  use         Select Go version
  versions    List version

Flags:
      --debug   output debug log
  -h, --help    help for gvs

Use "gvs [command] --help" for more information about a command.

gvs's People

Contributors

komem3 avatar

Stargazers

kanda riku avatar ryuta hara avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.