1.报如下错

go.mod file not found in current directory or any parent directory; see 'go help modules'

修复: go mod init XXX文件名

go学习笔记--3.注意事项和报错处理

 

 2.公开发注意事项

  2.1 每个go函数入口是main函数

  2.2 每一行只能写一个语句,否则报错。

go学习笔记--3.注意事项和报错处理

 

  2.3 声明过后的变量或者import的函数不适用,会报错

go学习笔记--3.注意事项和报错处理

 

  2.4

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2021-06-12
  • 2021-09-22
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-07
  • 2022-12-23
  • 2021-09-20
  • 2022-01-01
  • 2022-12-23
  • 2021-10-02
  • 2021-06-08
相关资源
相似解决方案