摘要: Declare, create and initialize struct types Anonymous struct types Named vs Unnamed types 命名类型和匿名类型 结构体类型排列 阅读全文
posted @ 2018-03-16 23:47 cucy_to 阅读(186) 评论(0) 推荐(0)
摘要: Declare, initialize and iterate Map literals and delete Map key restrictions key类型 阅读全文
posted @ 2018-03-16 23:12 cucy_to 阅读(133) 评论(0) 推荐(0)
摘要: Reference Types Taking slices of slices Appending slices go // Sample program to show how to grow a slice using the built in function append // and ho 阅读全文
posted @ 2018-03-16 20:57 cucy_to 阅读(163) 评论(0) 推荐(0)
摘要: ... iota go // Sample program to show how iota works. package main import "fmt" func main() { const ( A1 = iota // 0 : Start at 0 B1 = iota // 1 : Inc 阅读全文
posted @ 2018-03-16 00:40 cucy_to 阅读(230) 评论(0) 推荐(0)