티스토리 뷰
nodejs의 NVM과 같이 golang에도 GVM을 통해 버전관리가 가능하다.
gvm: https://github.com/moovweb/gvm
GVM 설치하기
// zsh
$ zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
// bash
$ bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
$ source ~/.gvm/scripts/gvm
golang 설치하기
$ gvm
Usage: gvm \[command\]
Description:
GVM is the Go Version Manager
Commands:
version - print the gvm version number
get - gets the latest code (for debugging)
use - select a go version to use (--default to set permanently)
diff - view changes to Go root
help - display this usage text
implode - completely remove gvm
install - install go versions
uninstall - uninstall go versions
cross - install go cross compilers
linkthis - link this directory into GOPATH
list - list installed go versions
listall - list available versions
alias - manage go version aliases
pkgset - manage go packages sets
pkgenv - edit the environment for a package set
$ gvm version
Go Version Manager v1.0.22 installed at /home...
설치가능한 목록 조회 및 설치하기
$ gvm listall
...
go1.19.1
go1.19.2
go1.19.3
go1.19.4
go1.19.5
go1.19.6
go1.19.7
go1.20
go1.20rc1
go1.20rc2
go1.20rc3
go1.20.1
go1.20.2
release.r56
release.r57
release.r58
release.r59
release.r60
release.r57.1
release.r57.2
release.r58.1
release.r58.2
release.r60.1
release.r60.2
release.r60.3
//binary 형태로 설치해준다.
$ gvm install go1.20rc3 -B
Installing go1.20rc3 from binary source
//설치된 목록 조회
$ gvm list
gvm gos (installed)
go1.20
go1.20rc3
system
설치 확인하기
$ go version
go version go1.20rc3 linux/amd64
1.20rc3 버전으로 바낀걸 확인 할 수 있다.
'공부합시다 > Golang' 카테고리의 다른 글
Redis pub/sub in golang (0) | 2023.05.04 |
---|---|
golang 웹크롤링 예제 (0) | 2023.03.15 |
Golang으로 Todo 만들기 (0) | 2022.01.21 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- eloquent-observer
- 메일
- graphql-php
- 테스트_다중트랜잭션
- addMonth
- session+token authorize
- php
- MySQL
- 정의
- l5-swagger-response
- addMonthWithoutOverflow
- 정규식
- laravel-kafka
- laravel-test
- observer 매개변수 전달하기
- aaa패턴
- l5-swagger
- exception-test
- redis
- Laravel
- POP3
- graphql
- django
- bitwarden-cli
- 라라벨
- password-manager
- php-laravel
- 자바스크립트
- Python
- vim
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
글 보관함