当前位置:网站首页>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
边栏推荐
- Redis Subscription and Redis Stream
- Constructor instance method inheritance of typescript38-class (implement)
- 飞桨助力航天宏图PIE-Engine地球科学引擎构建
- Personal blog system project test
- LeetCode Review Diary: 34. Find the first and last position of an element in a sorted array
- oracle query scan full table and walk index
- oracle查询扫描全表和走索引
- 【LeetCode每日一题】——654.最大二叉树
- Data transfer at the data link layer
- 云和恩墨:让商业数据库时代的价值在openGauss生态上持续繁荣
猜你喜欢

Redis Subscription and Redis Stream

Constructor instance method inheritance of typescript37-class (extends)

oracle query scan full table and walk index

typescript30-any类型

nacos启动报错,已配置数据库,单机启动

typescript36-class的构造函数实例方法

6-25 Vulnerability Exploitation - irc Backdoor Exploitation

Handwritten Blog Platform ~ Day Two

使用百度EasyDL实现厂区工人抽烟行为识别

『网易实习』周记(一)
随机推荐
Personal blog system project test
秒懂大模型 | 3步搞定AI写摘要
C language inserted into the characters of simple exercises
Shell入门终章
Understand the big model in seconds | 3 steps to get AI to write a summary
Redis 底层的数据结构
3.Bean的作用域与生命周期
[LeetCode Daily Question]——654. The largest binary tree
The ultra-large-scale industrial practical semantic segmentation dataset PSSL and pre-training model are open source!
"NetEase Internship" Weekly Diary (2)
typescript37-class的构造函数实例方法继承(extends)
LeetCode Review Diary: 153. Find the Minimum Value in a Rotated Sort Array
ofstream,ifstream,fstream读写文件
Day115.尚医通:后台用户管理:用户锁定解锁、详情、认证列表审批
Pcie the inbound and outbound
pcie inbound和outbound关系
¶ Backtop back to the top is not effective
电子制造仓储条码管理系统解决方案
雇用WordPress开发人员:4个实用的方法
Effects of Scraping and Aggregation
