// Converts the KVGet->map into a comma separated string list of @usernames
// Returns "None" for an empty map
Converts the KVGet->map into a comma separated string list of @usernames
Returns "None" for an empty map
// Converts the KVGet - > map into a comma separated string list of @usernames // Returns " None " for an empty map
func GetUsernameList(m map[string]bool) string {
	usernameList := make([]string, 0, len(m))
	for k := range m {
		usernameList = append(usernameList, fmt.Sprintf("@%s", k))
	}
	sort.Strings(usernameList)
	var usernameListString string
	if len(usernameList) > 0 {
		usernameListString = strings.Join(usernameList, ", ")
	} else {
		usernameListString = "None"
	}
	return usernameListString
}
func GetUsernameList ( m map [ string ] bool ) string { usernameList := make ( [ ] string , 0 , len ( m ) ) for k := range m { usernameList = append ( usernameList , fmt . Sprintf ( " " , k ) ) } sort . Strings ( usernameList ) var usernameListString string if len ( usernameList ) > 0 { usernameListString = strings . Join ( usernameList , " " ) } else { usernameListString = " " } return usernameListString }
Converts the KVGet->map into a comma separated string list of @usernames
Returns "None" for an empty map
Converts the KVGet - > map into a comma separated string list of @usernames Returns " None " for an empty map