17 lines
265 B
Go
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")))
|
||
|
}
|