From 64cb6abe28a335c105c750518fb3ed64fafd402b Mon Sep 17 00:00:00 2001 From: icey-yu <1186114839@qq.com> Date: Fri, 13 Sep 2024 19:06:43 +0800 Subject: [PATCH] fix: map to slice --- utils/datautil/datautil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/datautil/datautil.go b/utils/datautil/datautil.go index de7c2d1..e4bb070 100644 --- a/utils/datautil/datautil.go +++ b/utils/datautil/datautil.go @@ -285,7 +285,7 @@ func SliceSetAny[E any, K comparable](es []E, fn func(e E) K) map[K]struct{} { } // MapToSlice map to slice -func MapToSlice[E any, K comparable](m map[K]E, fn func(e E) K) []E { +func MapToSlice[E any, K comparable](m map[K]E) []E { es := make([]E, 0, len(m)) for _, v := range m { es = append(es, v)