Go by Example - Values
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: Values
golang内置有多种基本数据类型,包含字符串、整型、浮点型、布尔型等等。上面是一些基本类型的示例。
1 | package main |
1 | $ go run values.go |