当前位置:网站首页>Go installation tutorial
Go installation tutorial
2022-06-09 20:56:00 【w_ rcss】
Download link :https://golang.google.cn/dl

Select the installation directory to complete the installation .
- dos Window type :go version Check go edition
- go env

- GOROOT:go Language installation directory .
- GOPATH: go Working directory of languages . My directory here is D Discoid workspace, Its subdirectories are src Deposit go Source code ,pck Store compiled files ,bin Store the compiled executable file .
.msi The installation package is configured to by default c disc . Can be modified through environment variables ;.zip Manual configuration required . - GOBIN:go Of the language installation directory bin, namely GOROOT Under the bin.
stay workspace\src Write below test.go file
package main import "fmt" func main(){ fmt.Println("hello world") }dos The window enters workspace\src, perform go run test.go

边栏推荐
猜你喜欢
随机推荐
Some small details of C for loop
【运维有小邓】AD域文件权限管理
C#中的继承关系
Richter's replacement principle in C #
部署 Kubernetes + KubeVirt 以及 KubeVirt的基本使用
GBase 8s 扩展外连接
Usage of memberwiseclone in C #
Kubevirt network source code analysis
Latex mathematical symbols Encyclopedia
服务器响应未加载静态资源
GameFi新的启程,AQUANEE将于6.9日登陆Gate以及BitMart
Go 1.18 new features - workspace
Learn to use PHP to implement unlimited comments and unlimited to secondary comments solutions
How Bi makes SaaS products have a "sense of security" and "sensitivity" (Part I)
C#中的泛型T的应用
Figure guessing game in C language
Pan micro oa9 foreground unlimited getshell
GBase8s数据库select子句6
Initial experience of transformation of vite lerna monorepo project
Numpy duplicate data








