包找不到:提示如cannot find package xxx in any of […],通常是导入路径错误或模块未下载;检查导入语句、执行go get或go mod tidy,必要时确认GOPATH/GO111MODULE设置。
CGO 相关:提示如cgo: exec gcc: exec: “gcc”: executable file not found in PATH,说明缺少gcc;安装build-essential或gcc即可。
语法或类型错误:如undefined: xxx、imported and not used、syntax error: unexpected newline、cannot use xxx as type yyy、multiple-value xxx() in single-value context,按提示修复代码(未使用导入请删除、检查函数返回值接收、修正语法)。