Files
niri/model_workspace_reference.go
2025-07-25 13:41:23 +02:00

20 lines
493 B
Go

package niri
type WorkspaceReferenceArg struct {
ID *WorkspaceID `json:"Id,omitempty"`
Index *int `json:"Index,omitempty"`
Name *string `json:"Name,omitempty"`
}
func WorkspaceByID(id WorkspaceID) WorkspaceReferenceArg {
return WorkspaceReferenceArg{ID: &id}
}
func WorkspaceByIndex(index int) WorkspaceReferenceArg {
return WorkspaceReferenceArg{Index: &index}
}
func WorkspaceByName(name string) WorkspaceReferenceArg {
return WorkspaceReferenceArg{Name: &name}
}