当前位置:网站首页>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 .
边栏推荐
- State compression DP acwing 291 Mondrian's dream
- Too many open files solution
- PIC16F648A-E/SS PIC16 8位 微控制器,7KB(4Kx14)
- AcWing 787. Merge sort (template)
- Methods of checking ports according to processes and checking processes according to ports
- Tree DP acwing 285 A dance without a boss
- LeetCode 532. K-diff number pairs in array
- AcWing 785. Quick sort (template)
- [point cloud processing paper crazy reading frontier version 10] - mvtn: multi view transformation network for 3D shape recognition
- LeetCode 535. Encryption and decryption of tinyurl
猜你喜欢

LeetCode 715. Range module

DOM render mount patch responsive system

精彩回顾|I/O Extended 2022 活动干货分享

【点云处理之论文狂读前沿版10】—— MVTN: Multi-View Transformation Network for 3D Shape Recognition

常见渗透测试靶场

浅谈企业信息化建设

【点云处理之论文狂读经典版8】—— O-CNN: Octree-based Convolutional Neural Networks for 3D Shape Analysis

LeetCode 513. Find the value in the lower left corner of the tree

【点云处理之论文狂读经典版12】—— FoldingNet: Point Cloud Auto-encoder via Deep Grid Deformation

LeetCode 241. Design priorities for operational expressions
随机推荐
Low code momentum, this information management system development artifact, you deserve it!
Complex character + number pyramid
Data mining 2021-4-27 class notes
LeetCode 241. 为运算表达式设计优先级
Use of sort command in shell
What is the difference between sudo apt install and sudo apt -get install?
Instant messaging IM is the countercurrent of the progress of the times? See what jnpf says
LeetCode 871. Minimum refueling times
AcWing 785. 快速排序(模板)
拯救剧荒,程序员最爱看的高分美剧TOP10
How to use Jupiter notebook
精彩回顾|I/O Extended 2022 活动干货分享
[point cloud processing paper crazy reading frontier version 8] - pointview gcn: 3D shape classification with multi view point clouds
Tree DP acwing 285 A dance without a boss
[point cloud processing paper crazy reading classic version 13] - adaptive graph revolutionary neural networks
LeetCode 715. Range module
In the digital transformation, what problems will occur in enterprise equipment management? Jnpf may be the "optimal solution"
Binary tree traversal (first order traversal. Output results according to first order, middle order, and last order)
Save the drama shortage, programmers' favorite high-score American drama TOP10
Uc/os self-study from 0