当前位置:网站首页>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
边栏推荐
- Byte taught me a hard lesson: When a crisis comes, you don't even have time to prepare...
- 【LeetCode每日一题】——704.二分查找
- The ultra-large-scale industrial practical semantic segmentation dataset PSSL and pre-training model are open source!
- 一本适合职场新人的好书
- Fly propeller power space future PIE - Engine Engine build earth science
- Centos7 安装postgresql并开启远程访问
- 手写一个博客平台~第三天
- 求大神解答,这种 sql 应该怎么写?
- bool框架::PosInGrid (const简历:关键点kp, int &posX, int诗句)
- Hash collisions and consistent hashing
猜你喜欢
随机推荐
垃圾回收器CMS和G1
制造企业数字化转型现状分析
Redis Persistence - RDB and AOF
Chengdu openGauss user group recruit!
CodeTon Round 2 D. Magical Array 规律
2023年起,这些地区软考成绩低于45分也能拿证
Data transfer at the data link layer
pcie inbound和outbound关系
Force buckle, 752-open turntable lock
【LeetCode Daily Question】——704. Binary Search
typescript29-枚举类型的特点和原理
oracle query scan full table and walk index
用位运算为你的程序加速
LeetCode brushing diary: 33. Search and rotate sorted array
Named parameter implementation of JDBC PreparedStatement
AntPathMatcher uses
雇用WordPress开发人员:4个实用的方法
Shell Beginners Final Chapter
乱七八糟的网站
数据链路层的数据传输










