Skip to content

Commit f4ee932

Browse files
authored
Create main.go
1 parent 2d8174d commit f4ee932

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

main.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package main // 声明 main 包,表明当前是一个可执行程序
2+
3+
import "fmt" // 导入内置 fmt
4+
5+
func main(){ // main函数,是程序执行的入口
6+
fmt.Println("Hello World!") // 在终端打印 Hello World!
7+
}

0 commit comments

Comments
 (0)