sway/event.go
2023-10-07 16:21:49 +02:00

17 lines
265 B
Go

package sway
import (
"encoding/json"
"git.milar.in/milarin/adverr"
)
type Event struct {
Change string `json:"change"`
Container Node `json:"container"`
}
func (e Event) String() string {
return string(adverr.Must(json.MarshalIndent(e, "", "\t")))
}