摘要:
SliceOpr切片常用操作 切片取值范围 切片的取值范围为了插入做准备 func TestTimeNowUnix(t *testing.T) { var s []int s = make([]int, 0) s = append(s, 1, 2, 3, 4) fmt.Println(s[1:2]) 阅读全文
摘要:
TimeTimer The Timer type represents a single event. When the Timer expires, the current time will be sent on C, unless the Timer was created by AfterF 阅读全文
摘要:
StructTransmit值传递和引用传递 代码 package strcurt_ptr import "fmt" type Item0 struct { Name0 string } type Item1 struct { Item0 Name1 string } type Item2 stru 阅读全文