Skip to content

Commit

Permalink
docs: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitcharolia committed Jul 20, 2023
1 parent a61b51f commit c80e12f
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
goenv is a command-line tool to manage multiple versions of Golang on your system.

## Installation
To install goenv, you can use the following command:
```shell
go install github.com/ankitcharolia/goenv@latest
```
**Download**: https://github.com/ankitcharolia/goenv/releases

## Usage
goenv provides several commands to manage Golang versions on your system.
Expand All @@ -21,5 +18,30 @@ Flags:
--use Use a specific version of GOLANG
```

### Install a specific version of GOLANG
```shell
$ goenv --install 1.20.6
Installing Go version 1.20.6...
https://dl.google.com/go/go1.20.6.linux-amd64.tar.gz
95.57 MiB / 95.57 MiB [-----------------------------------------------------------------------------------------------] 100.00% 13.92 MiB p/s 7.1s
Go version 1.20.6 is installed at $HOME_DIRECTORY/.go/1.20.6.
```

### Use a specific version of GOLANG
```shell
$ goenv --use 1.20.6
Using Go version 1.20.6.
Please make sure to execute: source ~/.bashrc
```

### List all installed GOLANG versions
```shell
$ goenv --list
Installed Golang versions:
* 1.20.6 (Currently active GOLANG version)
1.20.5
1.20.4
```

## License
This project is licensed under the MIT License - see the LICENSE file for details.

0 comments on commit c80e12f

Please sign in to comment.