Go language development environment construction process graphic explanation

Time:2022-5-13

I Go language development kit

1. What is go language development kit

Go language development kit is actually an implementation of go language, including the corresponding version of syntax, compilation, operation, garbage collection, etc. it contains the standard library, runtime and other necessary resources needed to develop go language

2. Go language development package download address

Go official download address: https://golang.org/dl/

Go official image station (this can be used if it cannot be opened): https://golang.google.cn/dl/

Go language Chinese website download address: https://studygolang.com/dl

goproxy. IO agent download address: https://gomirrors.org/

3. Install the selected version (I’ll use windows to demonstrate here)

image-20201206205931604

Install a more stable version

image-20201206210156590

Double click to open the finish installation wizard

image-20201206210426887

image-20201206210454357

image-20201206210653076

image-20201206210856393

image-20201206210923471

image-20201206211013287

image-20201206211112561

II Configure environment variables

Use the search tool to search for environment variables (win10)

Or (this computer – > right click Properties – > advanced system settings)

image-20201206211455936

Select advanced and then environment variables

image-20201206211816756

Create gopath

image-20201206212123083

image-20201206212242301

Step by step after addingClick OK

PS: before go version 1.8GOPATHThe environment variable is empty after installation. You need to add it manually, but you don’t need to add it manually in later versions. There will be a default value after installation. The default values for different platforms are also not used. The default values for windows platforms are%USERPROFILE%/go

platform

The default value is windows% userprofile% / gounix $home / go. Use CMD to verify whether the environment variable is set successfully

image-20201206213720518

Create three folders under the directory you just added to the environment variable (to place different files)

image-20201206213028358

Finally, we willGOPATHandGOROOTAdd the bin directory under to the environment variable (step omitted), and then restart the terminal

image-20201206214513747

This is the end of this article about the detailed graphic explanation of the construction process of go language development environment. For more information about the construction of go language development environment, please search the previous articles of developeppaer or continue to browse the relevant articles below. I hope you will support developeppaer in the future!

Recommended Today

Oeasy teaches you to play VIM – 17 – # up and down

Up and down Recall the last lesson andfRelated is to jump to towardsfrontJump to yesf towardsafterJump to yesF andtRelated is to stick towardsfrontClose yest towardsafterClose yesT anda lowercase letterRelated isforward forwardJump isf forwardClose yest andCapitalizeRelated isbackward backwardJump isF backwardClose yesT And continueFind directionRelated is;、, Keep directionyes; Change directionyes, Up and down This time, it is […]