Go学习笔记01_hello_world

📅 发布时间:2026/7/15 22:23:03 👁️ 浏览次数:
Go学习笔记01_hello_world
内容来源: https://www.runoob.com/go/go-tutorial.html1. Go语言特色简洁, 快速, 安全并行, 有趣, 开源内存管理, 数组安全, 编译迅速2. Go语言用途3. 第一个Go程序hello.go文件packagemainimportfmtfuncmain(){fmt.Println(Hello, World!)}执行Go语言代码, 有两种方式:直接执行$ go run hello.go Hello, World!编译后执行, hello.exe是编译后的可执行文件$ go build hello.go $ ls hello.exe hello.go $ $ hello.exe Hello, World!