会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
☞@_@
博客园
首页
新随笔
联系
订阅
管理
2021年11月3日
go语言之使用sort.Interface接口进行排序
摘要: package main import ( "fmt" "sort"//第一步 ) type User struct { Name string Age int } //第二步 type Us []User //第三步 func(u Us) Len() int{ return len(u) } //
阅读全文
posted @ 2021-11-03 21:42 ☞@_@
阅读(40)
评论(0)
推荐(0)
编辑
公告