摘要:
1、方法总结 sort.Ints sort.Floats sort.Strings sort.SliceStable sort.Interface{} 2、实例 //sort.Ints() s := []int{4, 2, 3, 1} sort.Ints(s) fmt.Println(s) // 输 阅读全文
posted @ 2023-02-13 14:34
☞@_@
阅读(34)
评论(0)
推荐(0)
摘要:
type Season int const ( Summer Season = iota + 1 Autumn Winter Spring ) type ArticleState int const ( Draft ArticleState = iota + 1 Published Deleted 阅读全文
posted @ 2023-02-13 14:14
☞@_@
阅读(19)
评论(0)
推荐(0)

浙公网安备 33010602011771号