Install
Last updated
Was this helpful?
Last updated
Was this helpful?
Use Golang 1.22.
Please refer to to download and install the Go compilation and running environment. After Go is installed, please create a new system variable GOPATH and point it to your code directory. To learn more about GOPATH, execute the command go help gopath.
go mod way
Add the following dependencies in the go.mod file, the following takes version 0.7.0 as an example. Other versions need to be replaced with corresponding version numbers.
source code method
Run the following code to view the Go SDK version: