win7 Go language installation method: first download the golang program installation package; then define the installation directory and configure environment variables; then enter the "go version" command in the cmd window to view the version number; finally install LiteIDE development Just tools.
The environment of this article: Windows7 system, Go1.11.2 version, thinkpad t480 computer.
Recommended tutorial: "go language"
Building a go language development environment under win7 (64bit)
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
The Go language is specially optimized for programming multi-processor system applications. Programs compiled using Go can be as fast as C or C code, are more secure, and support parallel processes.
Learning Go is partly out of interest, and partly to be exposed to more application scenarios by becoming familiar with another language.
The installation steps are as follows:
1. Download the program installation package:
Installation program download address: https://golang.org/dl/ (wall download address http://www.golangtc.com/ download),
Since there are two types of installation packages under Windows: msi and zip; zip is installation-free and can be used after decompressing and configuring some environment variables; msi is the installation package version, which can be installed The corresponding environment variables will be set. My system is win7, 64-bit. For convenience, I chose go1.11.2.windows-amd64.msi. For others, please download according to the version you need;
2. Installation and environment configuration
The installation process is simple, just "next" all the way, you can also define the installation directory, msi will automatically configure some environment variables, you can also configure the environment variables yourself, check the environment after configuration Are the variables correct?
The main environment variables are as follows:
GOROOT: Go installation directory
GOPATH: The directory used to store the Go language Package. This directory cannot be in the Go installation directory
GOBIN: Go Binary file storage directory, just write %GOROOT%\bin
GOOS: operating system
GOARCH: specify the system environment, i386 means x86, amd64 means x64
PATH: %GOBIN% needs to be added to the PATH variable Finally, it is convenient to run Go under the command line. It should be noted that the go command depends on an important environment variable: GOPATH. Before go1.8, this environment variable required the user to set it. But after go1.8 version, there will be a default value if there is no setting. It is: GOPATH under Unix/Linux/macOS. Before go1.8, this environment variable required users to set it. But after go1.8 version, there will be a default value if there is no setting. It is: HOME/go directory under Unix/Linux/macOS, and it is: %USERPROFILE%/go directory under Windows.
Here is my configuration $GOPATH: D:\data
Configure environment variables, "Computer" - "Properties" - "Advanced System Settings" - "Environment Variables"
After completion, enter in the cmd window: go version
3. The environment is set up and the development tools are installed. LiteIDE is recommended here.
Download address: https://sourceforge.net/projects/liteide/files/
Select the latest version:
liteidex35.2.windows-qt5.9.5.zip
Download the compressed package and unzip it to the D:\ drive. After the installation is complete, open the application, "Tools"->"Edit Current Environment", and confirm the GOROOT variable and GO installation path. Consistent:
"Tools"->"Manage GOPATH"
4. Create a new small project
5. Running results
Use the shortcut key "ctrl r"
##
In this way, the development environment of GO is completely set up!
Generally, the GOPATH directory has three subdirectories: 1. src stores the source code (for example: .go.c.h.s, etc.); 2. The files generated after pkg compilation (for example: .a); 3. The files generated after bin compilation can Execution file (for convenience, you can add this directory to the GOPATH directory and agree to have three subdirectories: 1. src to store the source code (for example: .go.c.h.s, etc.); 2. The file generated after pkg compilation (for example: .a); 3. The executable file generated after bin compilation (for convenience, you can add this directory to the PATH variable);
The bin and pkg directories do not need to be created, the go command will automatically create them (such as go install), they only need to be created src directory.
If there are any deficiencies in the above, or suggestions, you are welcome to criticize and correct them.
The above is the detailed content of How to install win7 go language. For more information, please follow other related articles on the PHP Chinese website!

IP地址冲突,这还算是比较常见的网络问题,最近被还在使用Win7系统的用户遇到了,当同一网络上的两台或多台设备分配了相同的IP地址时,就会发生IP地址冲突,这篇文章是本站给大家带来的解决IP地址冲突问题方法。方法一:1、按【Win+R】组合键,打开运行,并输入【cmd】命令,按【确定或回车】,可以快速打开命令提示符窗口(建议使用管理权限创建此任务);2、管理员命令提示符窗口中,输入【ipconfig/release】命令,可以用来释放当前的IP地址,而输入【ipconfig/renew】命令,可

10代cpu支持win7系统。10代cpu搭配的400、500系列主板可以安装win7,安装的前提条件是必须关闭“安全启动”和有独显的情况开启csm兼容模式;但有些主板己经没有支持传统模式以及兼容模式的选项了,此时还需要更换主板。

相信有用户遇到这么一个问题了,win7系统却找不到摄像头快捷在哪,只能从程序里面调出摄像头功能,不知道内情的人还以为是摄像头的驱动没有安装呢,因此给有需要的win7用户在使用摄像头的时候制造了不小的麻烦。下面,小编就来给大家带来了Win7摄像头的打开教程了。使用笔记本电脑的用户都晓得笔记本自带有摄像头功能,不像台式电脑需要连接摄像头,在笔记本win7系统中直接打开摄像头就可以使用,非常方便。不过有用户一般的情况下都没有去摸索,尝试很多方法还是失败,下面,小编就来跟大家说说Win7摄像头的打开方法

win7电脑喇叭显示红叉的解决办法:1、在电脑桌面上找到“计算机”图标,单击鼠标右键选择“管理”;2、在左侧系统工具中单击选择“设备管理器”选项;3、在中间设备管理器选项中,单击展开“声音、视频和游戏控制器”选项;4、选中“Realtek High Definition Audio”,单击鼠标右键选择“启用”即可。

win7检测不到第二个显示器的解决办法:1、打开“控制面板”并选择“硬件和声音”;2、点击“设备打印机”中的“设备管理器”;3、通过“监视器”来查看是否有第二部显示器连接;4、回到桌面,右击鼠标,选择“屏幕分辨率”;5、选择合适自己显示器的刷新频率,再点击“应用”;6、重新对第二个显示器进行检测或显示即可。

win7电脑没有NVIDIA控制面板的解决办法:1、打开电脑;2、打开“控制面板”,然后找到“NVIDIA控制面板”;3、打开“NVIDIA控制面板”设置中的“添加桌面上下文菜单”这个选项即可。

win7可以通过使用系统配置实用程序、注册表编辑器和任务管理器来关闭开机自启动软件。详细介绍:1、系统配置实用程序,点击“开始”菜单,输入“msconfig”并按回车键,打开“系统配置”窗口,在“系统配置”窗口中,切换到“启动”标签,取消选中想要关闭的软件前面的复选框,然后点击“应用”和“确定”按钮保存更改即可。2、注册表编辑器等等。

罗技驱动在最新的系统Win11中兼容良好。对于一些用户好奇的老旧系统Win7,也可以放心使用,因为罗技驱动同样兼容Win7系统。罗技驱动win7能用吗:答:罗技驱动win7能用。罗技驱动无论什么系统都可以兼容,罗技是国际知名品牌,它的驱动非常全面。罗技驱动的主要界面:1、软件主界面在左边,三个按钮依次是灯光,按键,灵敏度设置。在灯光界面的设置中,特效比较常规,而音频视觉效果是亮点。它可以根据声音频率变色,根据高、中、低音频段进行不同的颜色和效果设置。3、按键设置中,用户可以根据自己有什么特殊要求


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Chinese version
Chinese version, very easy to use

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Dreamweaver Mac version
Visual web development tools