Error message here!

Hide Error message here!

忘记密码?

Error message here!

请输入正确邮箱

Hide Error message here!

密码丢失?请输入您的电子邮件地址。您将收到一个重设密码链接。

Error message here!

返回登录

Close

Go language development environment construction

Osteoporosis for you 2021-01-20 18:02:27 阅读数:14 评论数:0 点赞数:0 收藏数:0

u=3111860246,1925938903&fm=26&gp=0

One .GO Language development package

1. What is? GO Language development package

go The language development kit is right go An implementation of language , Including the corresponding version of the syntax , compile , function , Garbage collection, etc , It contains development go The standard library required by the language , Runtime and other necessary resources

2.GO Language development package download address

3. install

  • Choose the version ( I use it here. Windows To do a demonstration )

image-20201206205931604

  • Install a more stable version

image-20201206210156590

  • Double click to open the setup wizard

image-20201206210426887

image-20201206210454357

image-20201206210653076

image-20201206210856393

image-20201206210923471

image-20201206211013287

image-20201206211112561

Two . Configure environment variables

  • perhaps ( This computer --> Right click properties --> Advanced system setup )

image-20201206211455936

  • choice " senior ", Re selection " environment variable "

image-20201206211816756

  • establish GOPATH

image-20201206212123083

image-20201206212242301

Step by step after adding Click ok

ps : stay Go 1.8 Before the release GOPATH Environment variables are empty after installation , You need to manually add , But in later versions, you don't have to add it manually , After installation, there will be a default value . The default values for different platforms are not used ,Windows The default value under the platform is %USERPROFILE%/go

platform The default value is
Windows %USERPROFILE%/go
Unix $HOME/go
  • Use cmd Verify that the environment variables are set successfully

image-20201206213720518

  • Create three folders in the directory just added to the environment variable ( Used to place different files )

image-20201206213028358

  • In the end we will GOPATH and GOROOT Under the Bin directory is added to the environment variable ( Step omitted ), Then restart the terminal .

image-20201206214513747

Copyright statement
In this paper,the author:[Osteoporosis for you],Reprint please bring the original link, thank you

编程之旅,人生之路,不止于编程,还有诗和远方。
阅代码原理,看框架知识,学企业实践;
赏诗词,读日记,踏人生之路,观世界之行;