当前位置:网站首页>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 .
边栏推荐
- LeetCode 871. Minimum refueling times
- Shell script kills the process according to the port number
- LeetCode 515. Find the maximum value in each tree row
- 剑指 Offer II 029. 排序的循环链表
- 【点云处理之论文狂读经典版11】—— Mining Point Cloud Local Structures by Kernel Correlation and Graph Pooling
- 【点云处理之论文狂读经典版7】—— Dynamic Edge-Conditioned Filters in Convolutional Neural Networks on Graphs
- [point cloud processing paper crazy reading classic version 9] - pointwise revolutionary neural networks
- [point cloud processing paper crazy reading classic version 8] - o-cnn: octree based revolutionary neural networks for 3D shape analysis
- Summary of methods for counting the number of file lines in shell scripts
- With low code prospect, jnpf is flexible and easy to use, and uses intelligence to define a new office mode
猜你喜欢

Complex character + number pyramid

樹形DP AcWing 285. 沒有上司的舞會

Recommend a low code open source project of yyds

Introduction to the basic application and skills of QT

LeetCode 871. Minimum refueling times

一个优秀速开发框架是什么样的?

即时通讯IM,是时代进步的逆流?看看JNPF怎么说
![[point cloud processing paper crazy reading classic version 7] - dynamic edge conditioned filters in revolutionary neural networks on Graphs](/img/0a/480f1d1eea6f2ecf84fd5aa96bd9fb.png)
[point cloud processing paper crazy reading classic version 7] - dynamic edge conditioned filters in revolutionary neural networks on Graphs

LeetCode 241. 为运算表达式设计优先级

Computing level network notes
随机推荐
LeetCode 241. Design priorities for operational expressions
我們有個共同的名字,XX工
Binary tree sorting (C language, int type)
Summary of methods for counting the number of file lines in shell scripts
【毕业季|进击的技术er】又到一年毕业季,一毕业就转行,从动物科学到程序员,10年程序员有话说
低代码起势,这款信息管理系统开发神器,你值得拥有!
LeetCode 75. 颜色分类
2022-2-14 learning xiangniuke project - generate verification code
状态压缩DP AcWing 291. 蒙德里安的梦想
LeetCode 57. Insert interval
[point cloud processing paper crazy reading classic version 13] - adaptive graph revolutionary neural networks
数位统计DP AcWing 338. 计数问题
Method of intercepting string in shell
Sword finger offer II 029 Sorted circular linked list
Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code
Problems in the implementation of lenet
[point cloud processing paper crazy reading classic version 10] - pointcnn: revolution on x-transformed points
Severity code description the project file line prohibits the display of status error c2440 "initialization": unable to convert from "const char [31]" to "char *"
LeetCode 324. Swing sort II
Pic16f648a-e/ss PIC16 8-bit microcontroller, 7KB (4kx14)