当前位置:网站首页>Win Go development kit installation configuration, GoLand configuration
Win Go development kit installation configuration, GoLand configuration
2022-08-02 02:05:00 【dreambyday】
Go Language Development Kit
Download
Configuration
- Create two directories first: goroot and gopath
li> - Install the msi file just now and specify the installation directory as goroot
- Set the environment variable GOPATH to the gopath directory

- Verify win+r ->cmd->go env

If the above information appears, the configuration is successful
IDE download configuration
Download
Goland official download address: https://www.jetbrains.com/zh-cn/go/download/
Choose a 30-day trial (requires account registration)
Configuration
file->settings configure gopath and goroot respectively


Test

Create main file
Code
package mainimport ("fmt""net/http")func helloWorld(w http.ResponseWriter, r *http.Request) {fmt.Fprintln(w, "hello world")}func main() {http.HandleFunc("/", helloWorld)http.ListenAndServe(":8080", nil)span>}Start:
go run main.go
Browser access
边栏推荐
- 个人博客系统项目测试
- Coding Experience Talk
- kubernetes之服务发现
- Day115. Shangyitong: Background user management: user lock and unlock, details, authentication list approval
- The underlying data structure of Redis
- 『网易实习』周记(一)
- LeetCode刷题日记:74. 搜索二维矩阵
- LeetCode刷题日记:LCP 03.机器人大冒险
- typescript37-class的构造函数实例方法继承(extends)
- 牛顿定理和相关推论
猜你喜欢

Personal blog system project test

LeetCode Brushing Diary: 74. Searching 2D Matrix

Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021: Interpretation

typescript37-class的构造函数实例方法继承(extends)

Handwritten Blog Platform ~ Day Two

手写博客平台~第二天

LeetCode刷题日记:LCP 03.机器人大冒险

oracle query scan full table and walk index

Entry name ‘org/apache/commons/codec/language/bm/gen_approx_greeklatin.txt’ collided

Constructor instance method inheritance of typescript37-class (extends)
随机推荐
Fly propeller power space future PIE - Engine Engine build earth science
【LeetCode每日一题】——103.二叉树的锯齿形层序遍历
typescript33-typescript高级概述
飞桨开源社区季度报告来啦,你想知道的都在这里
MySQL optimization strategy
typescript29-枚举类型的特点和原理
typescript31-any类型
用位运算为你的程序加速
Fundamentals of Cryptography: X.690 and Corresponding BER CER DER Encodings
密码学的基础:X.690和对应的BER CER DER编码
Yunhe Enmo: Let the value of the commercial database era continue to prosper in the openGauss ecosystem
6-25 Vulnerability Exploitation - irc Backdoor Exploitation
Use baidu EasyDL implement factory workers smoking behavior recognition
bool Frame::PosInGrid(const cv::KeyPoint &kp, int &posX, int &posY)
Newton's theorem and related corollaries
typescript32-ts中的typeof
秒懂大模型 | 3步搞定AI写摘要
oracle查询扫描全表和走索引
Redis 底层的数据结构
typescript33 - high-level overview of typescript
