【Go语言学习之路 1】下载,安装,环境变量,IDE

下载Go

官网地址:https://go.dev/

点击 download 进入下载页面选择你要的版本

在这里插入图片描述

我是Windows直接下载

安装Go

在这里插入图片描述

CMD启动控制台,输入go

C:\Users\柏杉>go
Go is a tool for managing Go source code.

Usage:

        go <command> [arguments]

The commands are:

        bug         start a bug report
        build       compile packages and dependencies
        clean       remove object files and cached files
        doc         show documentation for package or symbol
        env         print Go environment information
        fix         update packages to use new APIs
        fmt         gofmt (reformat) package sources
        generate    generate Go files by processing source
        get         add dependencies to current module and install them
        install     compile and install packages and dependencies
        list        list packages or modules
        mod         module maintenance
        run         compile and run Go program
        test        test packages
        tool        run specified go tool
        version     print Go version
        vet         report likely mistakes in packages

IDE

继续选择 JetBrains 公司的IDE:GoLand

GoLand IDE 地址:https://www.jetbrains.com/go/

在这里插入图片描述

安装
在这里插入图片描述

启动
在这里插入图片描述

Golang环境搭建

  1. GOPATH是⼀个环境变量,⽤来表明go项⽬的存放路径
  2. GOPATH路径最好只设置⼀个,所有的项⽬都放到GOPATH的src⽬录下
  3. GOPATH的⽬录结构介绍

指定一个GOPATH的路径
在这里插入图片描述
在这里插入图片描述
配置完成

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小叶柏杉

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值