You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
347 B
23 lines
347 B
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()
|
|
}
|