1 개요[ | ]
- Go 버전 확인
- go version
- Go 버전을 출력하는 go 명령어
Console
Copy
root@localhost:~# go version
go version go1.19.3 linux/amd64
Console
Copy
root@localhost:~# go version
go version go1.12.7 linux/amd64
Go
Copy
package main
import (
"fmt"
"runtime"
)
func main() {
fmt.Println(runtime.Version())
fmt.Println(runtime.GOOS)
fmt.Println(runtime.GOARCH)
}
Loading
2 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.