Files
phishingclub/backend/utils/maps.go
2025-08-21 16:14:09 +02:00

11 lines
204 B
Go

package utils
// getMapKeys returns the keys of a map
func MapKeys[T any](m map[string]T) []string {
keys := make([]string, 0, len(m))
for key := range m {
keys = append(keys, key)
}
return keys
}