当前位置:网站首页>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
边栏推荐
- typescript32-ts中的typeof
- swift项目,sqlcipher3 -> 4,无法打开旧版数据库有办法解决吗
- 手写博客平台~第二天
- Handwriting a blogging platform ~ the first day
- 秒懂大模型 | 3步搞定AI写摘要
- oracle查询扫描全表和走索引
- Redis Subscription and Redis Stream
- Day115. Shangyitong: Background user management: user lock and unlock, details, authentication list approval
- 密码学的基础:X.690和对应的BER CER DER编码
- Centos7 install postgresql and enable remote access
猜你喜欢

秒懂大模型 | 3步搞定AI写摘要

【LeetCode Daily Question】——704. Binary Search

Handwriting a blogging platform ~ Day 3

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

typescript29-枚举类型的特点和原理
A full set of common interview questions for software testing functional testing [open thinking questions] interview summary 4-3

Handwritten Blog Platform ~ Day Two

The underlying data structure of Redis

Speed up your programs with bitwise operations

Yunhe Enmo: Let the value of the commercial database era continue to prosper in the openGauss ecosystem
随机推荐
3. Bean scope and life cycle
Day115. Shangyitong: Background user management: user lock and unlock, details, authentication list approval
When paying attention to the "Internet +" model, you usually only focus on the "Internet +" model itself
[LeetCode Daily Question] - 103. Zigzag Level Order Traversal of Binary Tree
typescript37-class的构造函数实例方法继承(extends)
Some insights from 5 years of automated testing experience: UI automation must overcome these 10 pits
飞桨助力航天宏图PIE-Engine地球科学引擎构建
libcurl访问url保存为文件的简单示例
typescript29-枚举类型的特点和原理
Constructor instance method inheritance of typescript37-class (extends)
Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021:解读
Centos7 安装postgresql并开启远程访问
力扣(LeetCode)213. 打家劫舍 II(2022.08.01)
软件测试 接口自动化测试 pytest框架封装 requests库 封装统一请求和多个基础路径处理 接口关联封装 测试用例写在yaml文件中 数据热加载(动态参数) 断言
Day115.尚医通:后台用户管理:用户锁定解锁、详情、认证列表审批
The underlying data structure of Redis
Handwritten Blog Platform ~ Day Two
LeetCode Review Diary: 153. Find the Minimum Value in a Rotated Sort Array
ofstream,ifstream,fstream读写文件
Byte taught me a hard lesson: When a crisis comes, you don't even have time to prepare...
