GO basic environment to build GoLand

1. GO official information

Official website: https://golang.org/
go sdk download: https://golang.google.cn/dl/golang
Chinese community: https://studygolang.com/dlChinese
community document https://studygolang.com/ pkgdoc

2. Development environment configuration

1. After downloading GO SDK, install it yourself

Go language development requires the use of go sdk,
download link https://go.dev/dl/download
zip package
go1.19.3.windows-amd64.zip

2. Environment configuration

#配置环境变量
GOROOT
D:\soft\Go

#项目
GOPATH
E:\goproject

#Path 增加%GOROOT%\bin
Path
%GOROOT%\bin

#国内网站加速下载
GOPROXY
https://goproxy.cn,direct

#检查
go version

3. Installation of development tool GoLand

1.GoLand official website download address

https://www.jetbrains.com/go/download/#section=windows

2. Open the created testproject01 directory

Insert image description here

3. Create test.go file

package main

import "fmt"

func main(){
    
    
    fmt.Println("Hello go")
}

4. Installation package organization

Link: https://pan.baidu.com/s/19ox6n8A7u9lLaGBOnetfJA?pwd=4nym
Extraction code: 4nym

Guess you like

Origin blog.csdn.net/qq_35583325/article/details/128192151