Install Go
Enter https://studygolang.com/ to enter the go Chinese website
Click on the navigation bar to download
Select Windows .msi for mirror installation
File structure after successful installation
Configure the Go environment
A total of 3 environment variables need to be configured in the Go configuration environment
-
The path environment variable is an environment variable that comes with windows. Its function is to enable the variables of our other software to be used in any dos window, similar to shortcuts
-
In the path, we need to configure the absolute path of the bin folder of the directory where we installed go. The bin folder contains the exe file of the go command.
-
GOPATH: The working directory of the Go language, it is recommended to use module instead
-
GOROOT: The installation path of go
You can use VSCode or GoLand (recommended) to install and inherit the development environment
GoLand official website https://www.jetbrains.com/go/ Need to pay to use Free for 30 days There are a bunch of cracking methods on the Internet
Hello Go
1. Create a new txt file, open the file and enter the following HelloGo code
2. Enter the following code
package main //Indicates that the file will be packaged as an .exe execution file import "fmt" //a package for formatted output // entry function func main() { fmt.Println("Hello Go") }
3. Modify the file suffix. Note that the modification must be the suffix file type name. If there is no file suffix, you can click to display the file suffix in the above display.
4. Edit the file using go build filename
Or use go run file name This command contains (go build file name and execute exe file in two steps)
Go to the corresponding file directory
cd C:\Users\chenchen\Desktop\
Compile Go file to exe executable file
go build GOHello.go
Execute the Go file
GOHello.exe
Check how much time GoLand is left
1. After opening the software, click the setting icon in the lower left corner
-
Click on manager Licenses
On the right is the expiration time, you can use remove License to remove the license and re-crack it
Share an IDEA with various software to crack Python, Java, Go, etc.
Please use the latest graphic tutorial: https://blog.lupf.cn/articles/2022/07/27/1658901515446.html """ Notice! ! ! Notice! ! ! Notice! ! ! "" 》》》The following are the download addresses of activation codes for different tools, please download according to the tools you use personally《《《》 》》》 The activation code needs to be used together with ja-netfilter, if used alone, it will prompt invalid "《《》 The activation code is updated irregularly, and you can get the latest activation code at any time after it expires IntelliJ IDEA activation code download address: https://www.jihuooo.com/code/c2/idea.zip PhpStorm activation code download address: https://www.jihuooo.com/code/c2/phpstorm.zip AppCode activation code download address: https://www.jihuooo.com/code/c2/appcode.zip DataGrip activation code download address: https://www.jihuooo.com/code/c2/datagrip.zip RubyMine activation code download address: https://www.jihuooo.com/code/c2/rubymine.zip WebStorm activation code download address: https://www.jihuooo.com/code/c2/webstorm.zip Rider activation code download address: https://www.jihuooo.com/code/c2/rider.zip CLion activation code download address: https://www.jihuooo.com/code/c2/clion.zip PyCharm activation code download address: https://www.jihuooo.com/code/c2/pycharm.zip GoLand activation code download address: https://www.jihuooo.com/code/c2/goland.zip DataSpell activation code download address: https://www.jihuooo.com/code/c2/dataspell.zip dotCover activation code download address: https://www.jihuooo.com/code/c2/dotcover.zip dotTrace activation code download address: https://www.jihuooo.com/code/c2/dottrace.zip dotMemory activation code download address: https://www.jihuooo.com/code/c2/dotmemory.zip For more activation methods, you can pay attention to the official account: a line of Java replies to the keyword [permanent activation] to get it for free; If you have any questions, you can add WeChat communication: mbb2100
Create Item
1. Select new project and enter the project name
2. Create a package name
Create a dirctroy called base
Create a go file to start learning Go syntax.