goup

command module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 20 Imported by: 0

README

koron/goup

PkgGoDev Actions/Go Go Report Card

Utility to download, extract and switch released go versions on Windows.

Getting started

Check stable go releases.

> goup remotelist
Remote Version:
  go1.13.7
  go1.12.16

Check all go releases.

> goup remotelist -all
Remote Version:
  go1.13.7
  go1.12.16
  go1.13.6
  go1.13.5
  go1.13.4
  (...snip...)
  go1.3.1
  go1.3
  go1.2.2
  go1
  go1.14beta1

Install (=download and extract) a go archive.

> goup install -root C:\golang go1.13.7

List installed go.

> goup list -root C:\golang
Local Version:
  go1.12.16.windows-amd64
  go1.13.7.windows-amd64

Switch go version. This requires symbolic link to directory, so you may need to install "Windows Developer mode".

> goup switch -root C:\golang go1.13.7
go1.13.7.windows-amd64

> dir C:\golang
 Volume in drive C has no label.
 Volume Serial Number is DEAD-BEEF

 Directory of C:\golang

2020/02/03  00:42    <DIR>          .
2020/02/03  00:42    <DIR>          ..
2020/02/03  00:42    <SYMLINKD>     current [go1.13.7.windows-amd64]
2020/02/02  18:48    <DIR>          dl
2020/02/02  18:48    <DIR>          go1.12.16.windows-amd64
2020/02/02  18:47    <DIR>          go1.13.7.windows-amd64
               0 File(s)              0 bytes
               6 Dir(s)  999,999,999,999 bytes free

Now C:\golang\current is a symblic link to go1.13.7's dir. You can add C:\golang\current\bin to PATH env, to run go command.

GOUP_ROOT env works as instead of -root C:\golang option.

Environment variables

  • GOUP_ROOT - root dir to install.

    GODL_ROOT can be used for same purpose but it is obsoleted. It will be removed at future release.

  • GOUP_LINKNAME - name of symbolic link for active version.

    Default is current but you can override it by this.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package godlremote provides an adapter to access the Go download site.
Package godlremote provides an adapter to access the Go download site.
internal
dltestsrv
Package dltestsrv provides test server for godlremote package.
Package dltestsrv provides test server for godlremote package.
verutil
Package verutil provides version utilities.
Package verutil provides version utilities.
Package tarx providers extractor of tar archive.
Package tarx providers extractor of tar archive.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL