goenv

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 6 Imported by: 0

README

GoEnv

GitHub go.mod Go version Unit-Tests GitHub tag (latest SemVer) Go Reference Go Report Card

Go multi version env manager

  • features TODO

goenv

中文说明

Install

Curl install

curl https://github.com/inherelab/goenv/releases/latest/download/goenv-linux-amd64 -L -o /usr/local/bin/goenv
chmod a+x /usr/local/bin/goenv

TIPs: notice replace the OS and arch on goenv-linux-amd64

Use go install

go install github.com/inherelab/goenv/cmd/goenv

Usage

Run goenv for see available commands

goenv
Switch

Switch Go to another version

goenv switch 1.16

Or:

goenv use 1.16

preview(on MacOS)

Install

Install new version

goenv install 1.18
Update
goenv update 1.18
Uninstall
goenv uninstall 1.18
Info
goenv info
List
goenv list
# or
goenv ls

Development

Clone
go clone https://github.com/inherelab/goenv
cd goenv
Run
go run ./cmd/goenv
Install
go install ./cmd/goenv

Base on

LICENSE

MIT

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg = &appConf{}

Cfg for the application

View Source
var CfgMgr *config.Config
View Source
var ConfFile = envutil.Getenv("GOENV_CONF_FILE", defaultFile)
View Source
var Version = "0.0.1"

Functions

func Init

func Init() error

Init config and more

func InitConfigFile

func InitConfigFile(reinstall bool) (string, error)

Types

This section is empty.

Directories

Path Synopsis
cmd
goenv command

Jump to

Keyboard shortcuts

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