20 lines
493 B
Go
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}
|
|
}
|