当前位置:网站首页>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 install
compile 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 build
Command generates only executable files And saved in the current directory ( Parameters can be directories and files Generally, it is a document )
andgo install
The command not only contains build The process of And generate compiled files and executable files And store according to the standard project catalogue .
边栏推荐
- [point cloud processing paper crazy reading frontier version 8] - pointview gcn: 3D shape classification with multi view point clouds
- 【点云处理之论文狂读前沿版10】—— MVTN: Multi-View Transformation Network for 3D Shape Recognition
- Problems in the implementation of lenet
- LeetCode 715. Range module
- Introduction to the usage of getopts in shell
- Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code
- [point cloud processing paper crazy reading classic version 11] - mining point cloud local structures by kernel correlation and graph pooling
- 低代码起势,这款信息管理系统开发神器,你值得拥有!
- 我們有個共同的名字,XX工
- LeetCode 75. 颜色分类
猜你喜欢
How to use Jupiter notebook
Format - C language project sub file
Discussion on enterprise informatization construction
网络安全必会的基础知识
Facial expression recognition based on pytorch convolution -- graduation project
What are the stages of traditional enterprise digital transformation?
Complex character + number pyramid
Tree DP acwing 285 A dance without a boss
AcWing 785. Quick sort (template)
Digital management medium + low code, jnpf opens a new engine for enterprise digital transformation
随机推荐
Tree DP acwing 285 A dance without a boss
LeetCode 1089. Duplicate zero
LeetCode 324. 摆动排序 II
LeetCode 532. 数组中的 k-diff 数对
LeetCode 1089. 复写零
求组合数 AcWing 885. 求组合数 I
PIC16F648A-E/SS PIC16 8位 微控制器,7KB(4Kx14)
20220630 learning clock in
Discussion on enterprise informatization construction
网络安全必会的基础知识
LeetCode 438. Find all letter ectopic words in the string
The difference between if -n and -z in shell
LeetCode 535. TinyURL 的加密与解密
Facial expression recognition based on pytorch convolution -- graduation project
With low code prospect, jnpf is flexible and easy to use, and uses intelligence to define a new office mode
【点云处理之论文狂读前沿版9】—Advanced Feature Learning on Point Clouds using Multi-resolution Features and Learni
状态压缩DP AcWing 91. 最短Hamilton路径
【点云处理之论文狂读经典版9】—— Pointwise Convolutional Neural Networks
Arbre DP acwing 285. Un bal sans patron.
The less successful implementation and lessons of RESNET