util.go 217 B

123456789101112
  1. package queue
  2. import "strings"
  3. func generateName(pushers []Pusher) string {
  4. names := make([]string, len(pushers))
  5. for i, pusher := range pushers {
  6. names[i] = pusher.Name()
  7. }
  8. return strings.Join(names, ",")
  9. }