package sway import ( "context" "fmt" "testing" ) func TestSubscribe(t *testing.T) { events, err := Subscribe(context.Background(), EventTypeWindow, EventTypeWorkspace) if err != nil { t.Fatal(err) } for event := range events { fmt.Println(event) } }