This commit is contained in:
withchao
2023-02-02 11:55:48 +08:00
parent 26b5ed72df
commit dab552aed4
2 changed files with 21 additions and 29 deletions
+13
View File
@@ -0,0 +1,13 @@
package utilsv2
import "Open_IM/pkg/common/db/table"
func demo() {
groups := []*table.GroupModel{}
groups = DuplicateRemovalAny(groups, func(t *table.GroupModel) string {
return t.GroupID
})
}