当前位置:网站首页>Liteide is easy to use
Liteide is easy to use
2022-07-03 09:15:00 【Fill your head with water】
Catalog
1. Download and install
LiteIDE Official website : Official website
Download address : download
Decompress after downloading , And then liteide.exe Send it to the desktop .
2. Configuration environment
LiteIDE It provides us with a variety of environments , The purpose is to enable us to compile programs into files that can be executed by different systems .
For example, I currently use windows64 System , And my server is also windows64, Then I just need to choose system It's a good environment , So after I execute the compilation , The compiler will automatically generate windows Executable in .exe file .

1.1 Configuration Management GOPATH/Modules/GOPROXY
In our project, we need to use GOPATH Or is it Modules You can click the inverted triangle option next to it ,on Said the use of mod,off No use ,auto Indicates that according to the test , Use... If you have .
Under the GOPROXY You can set up a proxy , After all, it's awesome that we don't set up agents on the wall of Greater China . Another way to set up the proxy is to click Tools -> Edit current environment , Then enter the agent , Generally, Alibaba cloud agents are used :GOPROXY=https://mirrors.aliyun.com/goproxy/, The function of editing the current environment is actually the same as what we type in the command line go env Then it is a truth to set .

1.2 Configure environment variables
# native compiler windows 386
GOROOT=E:\Application\Go # You are the one go Installation directory
GOBIN=%GOROOT%\bin
# GOARCH=386
GOOS=windows
CGO_ENABLED=1
PATH=%GOROOT%\bin;%PATH%
LITEIDE_GDB=gdb
LITEIDE_MAKE=mingw32-make
LITEIDE_TERM=%COMSPEC%
LITEIDE_TERMARGS=
LITEIDE_EXEC=%COMSPEC%
LITEIDE_EXECOPT=/C
3. Use
Right click the blank part of the right directory , Open Directory , Then find your settings workspace Catalog , Create your project in it , newly build src Catalog , stay src In the new go file test.go that will do
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello, The world ")
}
ctrl+s preservation , And then open the terminal go run test.go.
3.1 run build install
go run: compile and run Go program
stay src/hello Execute under directory go run hello.go
No files are generated Run program only ( Parameters can only contain main Of go file )go build: compile packages and dependencies
stay src Catalog or hello perform go build hello
Only under the corresponding current directory hello.exego installcompile and install packages and dependencies
stay src Catalog or hello perform go install hello
Generate bin and pkg file pkg Dependency packages are installed in ( The compiled )bin Generated in the hello.exe
Be careful :
go buildCommand generates only executable files And saved in the current directory ( Parameters can be directories and files Generally, it is a document )
andgo installThe command not only contains build The process of And generate compiled files and executable files And store according to the standard project catalogue .
边栏推荐
- 求组合数 AcWing 885. 求组合数 I
- [point cloud processing paper crazy reading frontier edition 13] - gapnet: graph attention based point neural network for exploring local feature
- Simple use of MATLAB
- LeetCode 30. 串联所有单词的子串
- AcWing 787. Merge sort (template)
- LeetCode 871. Minimum refueling times
- 【点云处理之论文狂读前沿版12】—— Adaptive Graph Convolution for Point Cloud Analysis
- [point cloud processing paper crazy reading classic version 8] - o-cnn: octree based revolutionary neural networks for 3D shape analysis
- 【点云处理之论文狂读经典版9】—— Pointwise Convolutional Neural Networks
- On the setting of global variable position in C language
猜你喜欢

数字化转型中,企业设备管理会出现什么问题?JNPF或将是“最优解”

Low code momentum, this information management system development artifact, you deserve it!

How to use Jupiter notebook

2022-2-14 learning xiangniuke project - generate verification code

Just graduate student reading thesis

Computing level network notes

Gaussian elimination acwing 883 Gauss elimination for solving linear equations

LeetCode 513. 找树左下角的值

Data mining 2021-4-27 class notes

【点云处理之论文狂读经典版10】—— PointCNN: Convolution On X-Transformed Points
随机推荐
Gaussian elimination acwing 883 Gauss elimination for solving linear equations
剑指 Offer II 029. 排序的循环链表
Tag paste operator (#)
LeetCode 515. Find the maximum value in each tree row
String splicing method in shell
Digital management medium + low code, jnpf opens a new engine for enterprise digital transformation
Sword finger offer II 091 Paint the house
In the digital transformation, what problems will occur in enterprise equipment management? Jnpf may be the "optimal solution"
<, < <,>, > > Introduction in shell
Methods of checking ports according to processes and checking processes according to ports
【点云处理之论文狂读经典版11】—— Mining Point Cloud Local Structures by Kernel Correlation and Graph Pooling
AcWing 785. Quick sort (template)
Instant messaging IM is the countercurrent of the progress of the times? See what jnpf says
低代码起势,这款信息管理系统开发神器,你值得拥有!
On February 14, 2022, learn the imitation Niuke project - develop the registration function
即时通讯IM,是时代进步的逆流?看看JNPF怎么说
LeetCode 1089. Duplicate zero
CSDN markdown editor help document
【点云处理之论文狂读前沿版8】—— Pointview-GCN: 3D Shape Classification With Multi-View Point Clouds
AcWing 786. 第k个数