sway/event.go

17 lines
265 B
Go
Raw Normal View History

2023-10-07 16:21:49 +02:00
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")))
}