安装Go SDK工具包

SDK的全称(Software Development Kit 软件开发工具包) SDK是提供给开发人员使用的,其中包含了对应开发语言的工具包

国际站点:https://go.dev/dl/ 国内站点:https://studygolang.com/dl

Windows

访问 https://go.dev/dl/ 站点,并下载Windows安装包,双击安装包然后根据Installer的提示进行安装。
image.png

Mac系统

访问 https://go.dev/dl/ 站点,并下载Mac的安装包(根据自己电脑的机型选择amd64或者arm64),双击安装包然后根据Installer的提示进行安装。
image.png

Linux系统

针对Linux系统,提供如下shell脚本进行安装

  1. #!/bin/bash
  2. SDKVERSION=go1.18.linux-amd64.tar.gz
  3. SDKDIR=/usr/local/
  4. wget -O $SDKDIR/gosdk.tar.gz https://studygolang.com/dl/golang/$SDKVERSION
  5. tar -zxvf $SDKDIR/gosdk.tar.gz -C $SDKDIR
  6. echo "export GOROOT=$SDKDIR/go" >> /etc/profile
  7. echo 'export PATH=$PATH:$GOROOT/bin/' >> /etc/profile
  8. source /etc/profile
  9. go version && \
  10. echo -e "#############################\n\nGO_SDK Installed Successfully\n\n#############################"

安装开发工具

Goland

VS Code