Apply go fix modernizations

This commit is contained in:
Ian Gulliver
2026-03-05 11:39:13 -08:00
parent 165b9d1c6c
commit fc3bbf894f
6 changed files with 32 additions and 36 deletions

View File

@@ -1,5 +1,7 @@
package main
import "strings"
import "fmt"
type Show struct {
@@ -30,11 +32,12 @@ type Trigger struct {
}
func (t *Trigger) String() string {
s := fmt.Sprintf("%s/%s ->", t.Source.Block, t.Source.Signal)
var s strings.Builder
s.WriteString(fmt.Sprintf("%s/%s ->", t.Source.Block, t.Source.Signal))
for _, target := range t.Targets {
s += fmt.Sprintf(" %s/%s", target.Block, target.Hook)
s.WriteString(fmt.Sprintf(" %s/%s", target.Block, target.Hook))
}
return s
return s.String()
}
type TriggerSource struct {