go配置

洪豆豆的记录 / 2023-05-17 / 原文

解决go: go.mod file not found in current directory or any parent directory; see ‘go help modules‘
go env -w GO111MODULE=on
go mod init xxx //xxx代表文件夹名