// Package util provide some utility functions package util import ( "maps" "slices" ) // GetKeysFromSet define func to get all keys from a set-like map. // It delegates to the standard library maps/slices helpers. func GetKeysFromSet[K comparable, V any](set map[K]V) []K { return slices.Collect(maps.Keys(set)) }