困扰我一个问题。我可以对map排序但是结构体本身怎么排序呢。比如说 type Per struct { B int A int }
怎么排序成
type Per struct { A int B int } 在地铁上手机敲得,不好看见谅,各位大佬
困扰我一个问题。我可以对map排序但是结构体本身怎么排序呢。比如说 type Per struct { B int A int }
怎么排序成
type Per struct { A int B int } 在地铁上手机敲得,不好看见谅,各位大佬