Go by Example - Hello world
Go by Example
Go is an open source programming language designed for building simple, fast, and reliable software.
Go by Example is a hands-on introduction to Go using annotated example programs. Check out the first example or browse the full list below.
Go by Example: Hello world
1 | package main |
1 | // 直接运行go文件 |
即go文件可直接通过go run golang_file
运行,可以通过编译为二进制文件方式运行。