1、go : 无法将"go"项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
解决方式:$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")
2、go get github.com/jinzhu/gorm
go get github.com/jinzhu/gorm: module github.com/jinzhu/gorm: Get "https://proxy.golang.org/github.com/jinzhu/gorm/@v/list": dial tcp 142.251.42.241:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
解决方式: go env -w GOPROXY=https://goproxy.cn,direct