package effects import ( "git.aiterp.net/lucifer3/server/device" "strings" ) func statesDescription(states []device.State) string { sb := strings.Builder{} sb.Grow(128) sb.WriteRune('[') for i, state := range states { if i > 0 { sb.WriteString(", ") } sb.WriteString(state.String()) } sb.WriteRune(']') return sb.String() }