directory
Version:
v0.0.0-...-0bfea92
Opens a new window with list of versions in this module.
Published: Dec 20, 2023
License: MIT
Opens a new window with license information.
README
¶
Go Land
Run
go run xxx.go
go build xxx.go
Link
- Go语言入门教程
数据类型
- Boolean
- 数字类型 string int / float32 / float64
- 字符串
- 派生类型
- 指针类型(Pointer)
- 数组类型
- 结构化类型
- Channel 类型
- 函数类型
- 切片类型
- 接口类型(interface)
- Map 类型
笔记
- iota 常量生成器
type Weekday int
const (
Sunday Weekday = iota // 0
Monday // 1
Tuesday // 2
Wednesday //3
Thursday // ...
Friday
Saturday
)
-
Println 与 Printf
- Println :可以打印出字符串,和变量
- Printf : 只可以打印出格式化的字符串,可以输出字符串类型的变量,不可以输出整形变量和整形
-
注释
-
godoc
Directories
¶
Click to show internal directories.
Click to hide internal directories.