当前位置:网站首页>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
- 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
边栏推荐
- Yunhe Enmo: Let the value of the commercial database era continue to prosper in the openGauss ecosystem
- 3 Month Tester Readme: 4 Important Skills That Impacted My Career
- [LeetCode Daily Question]——654. The largest binary tree
- Chengdu openGauss user group recruit!
- typescript33-typescript高级概述
- C language inserted into the characters of simple exercises
- LeetCode刷题日记:153、寻找旋转排序数组中的最小值
- Entry name ‘org/apache/commons/codec/language/bm/gen_approx_greeklatin.txt’ collided
- Record the pits where an error occurs when an array is converted to a collection, and try to use an array of packaging types for conversion
- LeetCode刷题日记:74. 搜索二维矩阵
猜你喜欢
个人博客系统项目测试
Fly propeller power space future PIE - Engine Engine build earth science
The characteristics and principle of typescript29 - enumeration type
记录一次数组转集合出现错误的坑点,尽量使用包装类型数组进行转换
Understand the big model in seconds | 3 steps to get AI to write a summary
Handwriting a blogging platform ~ Day 3
Chengdu openGauss user group recruit!
The Paddle Open Source Community Quarterly Report is here, everything you want to know is here
雇用WordPress开发人员:4个实用的方法
nacos启动报错,已配置数据库,单机启动
随机推荐
Redis 订阅与 Redis Stream
swift项目,sqlcipher3 -> 4,无法打开旧版数据库有办法解决吗
Rust P2P Network Application Combat-1 P2P Network Core Concepts and Ping Program
C语言之插入字符简单练习
YGG 公会发展计划第 1 季总结
软件测试 接口自动化测试 pytest框架封装 requests库 封装统一请求和多个基础路径处理 接口关联封装 测试用例写在yaml文件中 数据热加载(动态参数) 断言
制造企业数字化转型现状分析
AntPathMatcher使用
Basic use of typescript34-class
手写博客平台~第二天
Ask God to answer, how should this kind of sql be written?
牛顿定理和相关推论
typescript31-any类型
Fly propeller power space future PIE - Engine Engine build earth science
Huawei's 5-year female test engineer resigns: what a painful realization...
Understand the big model in seconds | 3 steps to get AI to write a summary
Constructor of typescript35-class
力扣 1374. 生成每种字符都是奇数个的字符串
力扣(LeetCode)213. 打家劫舍 II(2022.08.01)
[ORB_SLAM2] void Frame::ComputeImageBounds(const cv::Mat & imLeft)