package sway import ( "context" "fmt" "testing" ) func TestGetWorkspaces(t *testing.T) { workspaces, err := GetWorkspaces(context.Background()) if err != nil { t.Fatal(err) } for _, workspace := range workspaces { fmt.Println(workspace.Type, workspace.Output, workspace.Name) } }