golang

gvm

  • commands:

    • Installation:

      1
      2
      
      gvm install go1.13.8
      gvm use go1.13.8 --default
      
    • Uninstall:

      1
      2
      3
      4
      
      gvm use go1.11.1
      go clean -modcache
      gvm use go1.11.4
      gvm uninstall go1.11.1
      
  • Bash Completion

    1
    2
    3
    4
    5
    
    $ go get -u github.com/posener/complete/gocomplete
    $ gocomplete -install
    Install completion for go? y
    Installing...
    Done!
    
    • For MacOS, gocomplete insert a command in .bash_profile:

      1
      
      complete -C /Users/shihta/.gvm/pkgsets/go1.13.8/global/bin/gocomplete go
      
  • Reference:

telegraf

comments powered by Disqus