当前位置:网站首页>GoLand 2021.2 configure go (go1.17.6)
GoLand 2021.2 configure go (go1.17.6)
2022-07-03 13:48:00 【Lao Liu, you are so awesome】
One , To configure settings:
1, Open the configuration screen :
file->settings->Go
Pictured :

2, To configure GOROOT, Pictured :

3, To configure GOPATH, Pictured : No need to configure :

4,Go Modules: Choose Enable Go modules integration
Selected by default , No need to configure

explain : Liu Hongdi's go The forest is a focus golang The blog of ,
Address :https://blog.csdn.net/weixin_43881017
explain : author : Liu Hongdi mailbox : [email protected]
Two , add to configuration
Click on Add Configuration

Pictured :

Click on + Button , choice Go Build, Pictured :

spot OK Button , The toolbar is shown in the figure :

Point the green right triangle arrow , The project starts running

Red square button Click on You can stop the project
3、 ... and , The test results :
1, Code :
package main
import (
"github.com/gin-gonic/gin"
)
func main() {
// Declare a default route
r := gin.Default()
r.GET("/book", func(c *gin.Context) {
c.JSON(200, gin.H{
"message": "GET",
})
})
r.POST("/book", func(c *gin.Context) {
c.JSON(200, gin.H{
"message": "POST",
})
})
r.Run(":8080")
}
2, function :
After startup console

The project is already accessible through the browser , Pictured :

Four , see goland Version of :

5、 ... and , see go Version of :
[email protected]:/data/goapp/hello$ go version
go version go1.17.6 linux/amd64边栏推荐
- Bidirectional linked list (we only need to pay attention to insert and delete functions)
- AI scores 81 in high scores. Netizens: AI model can't avoid "internal examination"!
- [quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion
- 网上开户哪家证券公司佣金最低,我要开户,网上客户经理开户安全吗
- Setting up remote links to MySQL on Linux
- Introduction to the implementation principle of rxjs observable filter operator
- 3D视觉——2.人体姿态估计(Pose Estimation)入门——OpenPose含安装、编译、使用(单帧、实时视频)
- 父亲和篮球
- Complete DNN deep neural network CNN training with tensorflow to complete image recognition cases
- MapReduce implements matrix multiplication - implementation code
猜你喜欢

There is nothing new under the sun. Can the meta universe go higher?
![[技术发展-24]:现有物联网通信技术特点](/img/f3/a219fe8e7438b8974d2226b4c3d4a4.png)
[技术发展-24]:现有物联网通信技术特点
![[机缘参悟-37]:人感官系统的结构决定了人类是以自我为中心](/img/06/b71b505c7072d540955fda6da1dc1b.jpg)
[机缘参悟-37]:人感官系统的结构决定了人类是以自我为中心

Brief analysis of tensorboard visual processing cases

The principle of human voice transformer
![[bw16 application] instructions for firmware burning of Anxin Ke bw16 module and development board update](/img/b8/31609303fd817c48b6fff7c43f31e5.png)
[bw16 application] instructions for firmware burning of Anxin Ke bw16 module and development board update

Go language web development series 26: Gin framework: demonstrates the execution sequence of code when there are multiple middleware

Golang — 命令行工具cobra
![[quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion](/img/3b/28327bbf5eb19254f03500a41e2adb.jpg)
[quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion

MySQL 数据处理值增删改
随机推荐
[quantitative trading] permanent portfolio, turtle trading rules reading, back testing and discussion
R language uses the data function to obtain the sample datasets available in the current R environment: obtain all the sample datasets in the datasets package, obtain the datasets of all packages, and
TensorBoard可视化处理案例简析
[bw16 application] instructions for firmware burning of Anxin Ke bw16 module and development board update
Golang — template
Unity Render Streaming通过Js与Unity自定义通讯
Depth and breadth first traversal of tree (regardless of binary tree)
Open PHP error prompt under Ubuntu 14.04
Stack application (balancer)
Golang — template
Bidirectional linked list (we only need to pay attention to insert and delete functions)
Mysql:insert date:SQL 错误 [1292] [22001]: Data truncation: Incorrect date value:
Red hat satellite 6: better management of servers and clouds
untiy世界边缘的物体阴影闪动,靠近远点的物体阴影正常
Box layout of Kivy tutorial BoxLayout arranges sub items in vertical or horizontal boxes (tutorial includes source code)
Spark实战1:单节点本地模式搭建Spark运行环境
【电脑插入U盘或者内存卡显示无法格式化FAT32如何解决】
SQL Injection (POST/Select)
CVPR 2022 | 美团技术团队精选6篇优秀论文解读
Libuv库 - 设计概述(中文版)