foreword
I majored in Java network security, but after participating in the internship (security research engineer), I found that most of the needs come from python and go, and Java also has but few. The company is more willing to accept handsome guys who can go, so I plan to take out one every day. Hour to learn the go language.
Go environment construction
Install the Go development package
The go language basically supports the systems that are commonly used by everyone.
Go's development package address https://golang.google.cn/dl/
I use the Windows system, so I use the Windows download package.
Double-click the downloaded executable file.
configure GOPATH
GOPATH is an environment variable used to indicate the storage path (working directory) of the go project you wrote. It is best to set only one GOPATH path, and all project codes are placed in the src directory of GOPATH.
Configuration Steps:
Advanced System Settings
vscode installation configuration
The full name of VS Code is Visual Studio Code. It is a free, modern and lightweight code editor open sourced by Microsoft. It supports syntax highlighting, intelligent code completion, custom hotkeys, bracket matching, and code snippets for almost all mainstream development languages. , Code comparison Diff, GIT and other features, support plug-in expansion, support Win, Mac and Linux platforms.
Download address: https://code.visualstudio.com/Download
to download and double-click.
On the extension page, setting Chinese is convenient for operation.
Install the go extension