mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
11 lines
204 B
Go
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
|
|
}
|