Go by Example - Variables
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: Variables
golang中的变量被显式声明,编译时会做类型检查。
1 | package main |
1 | $ go run variables.go |