当前位置:网站首页>GoLand writes Go program
GoLand writes Go program
2022-07-27 06:46:00 【lianyz1985】
GoLand To write go Program
New->Project->Go, Specify any path , establish go project iris-demo;
File->New->Go File, Input server.go, establish go file ;
Copy the following code to server.go
package main
import (
"github.com/kataras/iris/v12"
)
func main() {
app := iris.New()
app.Logger().SetLevel("debug")
app.Run(iris.Addr(":8080"))
}
Enter the command at the terminal , initialization mode
go mod init iris-demo
Enter the following command at the terminal , Download dependency package
go get -u
If the imported package displays red , And in External Libraries Of Go Modules Display blank , lookup .idea In the catalog workspace.xml file , Add the following code
<component name="VgoProject">
<integration-enabled>true</integration-enabled>
<environment>
<map>
<entry key="GOPROXY" value="https://mirrors.aliyun.com/goproxy/" />
</map>
</environment>
</component>
Problem solving .
边栏推荐
猜你喜欢

shell函数

FTX.US推出股票和ETF交易服务,让交易更透明

torch加载自定义模型的问题

Shell programming specifications and variables

FTX Foundation funded 15million to help covid-19 clinical trials, which will affect global public health

Geonode GeoServer win10 installation tutorial (personal test)

向日葵教大家如何防范拒绝服务攻击漏洞?

Lamp -- source code compilation and installation

Raid explanation and configuration

About the use of TestNG related tags
随机推荐
Shell脚本删除自动清理超过大小的文件
Establishment of FTP server
Install redis under Windows
向日葵教大家如何防范拒绝服务攻击漏洞?
shell--条件语句(if语句、case语句)
ArcGIS for JS API (1) get all field names of FeatureLayer
使用密钥方式登录阿里云服务器
Shell script loop
Soul submitted an application for listing in Hong Kong stocks, accelerating the diversified and scene based layout of social gathering places
FTX.US推出股票和ETF交易服务,让交易更透明
Solve the problems of CONDA install stop and interruption
Basic knowledge of English: Rules for using attributives Part 2
2022年全球最具技术实力的的智能合约安全审计公司推荐
gin-vue-admin 使用docker容器中的数据库
Some applications of std:: bind and std:: function
Shell programming specifications and variables
Relevant preparation materials for system design
What is special about the rehabilitation orthopedic branch of 3D printing brand?
Shell script backup MySQL database
Redis fast learning