go version

1 개요[ | ]

Go 버전 확인
go version
  • Go 버전을 출력하는 go 명령어
root@localhost:~# go version
go version go1.19.3 linux/amd64
root@localhost:~# go version
go version go1.12.7 linux/amd64

package main

import (
	"fmt"
	"runtime"
)

func main() {
	fmt.Println(runtime.Version())
	fmt.Println(runtime.GOOS)
	fmt.Println(runtime.GOARCH)
}

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}