摘要:
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) // 输 阅读全文
摘要:
type Season int const ( Summer Season = iota + 1 Autumn Winter Spring ) type ArticleState int const ( Draft ArticleState = iota + 1 Published Deleted 阅读全文