go entry environment configuration

1. Install golang (64-bit), MinGW (64-bit), LiteIDE (32-bit)

 Download the golang installation package, double-click to install, the default installation directory: C:\Go;

The MinGW installation package (x86_64-4.8.2-release-posix-seh-rt_v3-rev2.7z) can be used after decompression. MinGW and golang are installed in 32-bit or 64-bit. Otherwise, 32-bit or 32-bit or 64-bit error, installation directory: D:\mingw;

LitelIDE can be used after decompression. After decompression, the directory is: D:\tool\go\liteide;

Note that the above three installation directories are added to the system environment variable PATH, and the GOROOT and GOPATH environment variables are added. GOPATH is used to formulate the workspace of the go project, such as: D:\work\go

2. Configure the LiteIDE development environment

 Because it is 64-bit, select win64.env in LiteEnv in "View" -> "Options" to set

If the path has been added to the PATH variable in the first step, this step does not need to set the PATH

 Set compile options and compile , compile -> compile configuration, set compile parameters. Add -gcflags "-N -l" to BUILDARGS to remove compilation optimization and facilitate debugging.

add GOPATH

View -> Manage GOPATH..., you can use the system GOPATH directory, or you can create a new directory E:\Code_Repository\golang and add it to "Custom Directory".

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326147676&siteId=291194637