刚刚安装了GoLand,尝试着写第一个go程序,但是默认包报错。如下:

GoLand创建go文件,运行时产生CreateProcess failed with error 216:错误 

 

经过探索,发现,go的默认的包名需要为main,修改为main即可。

package main

import "fmt"

func main()  {
	fmt.Println("Hello word")
}

GoLand创建go文件,运行时产生CreateProcess failed with error 216:错误 

 

相关文章:

  • 2021-08-26
  • 2022-12-23
  • 2021-11-28
  • 2021-11-07
  • 2021-03-28
  • 2021-11-03
  • 2021-06-18
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2021-05-15
  • 2022-02-16
  • 2021-05-21
  • 2021-09-15
相关资源
相似解决方案