目录
编写main方法
目录结构
调试和运行
注意:编写可运行的hello world必须放入main包下。
package main import "fmt" func main() { fmt.Println("Hello world!") }
调试和运行,跟java语言一样。
执行结果: