Files
coder/scripts/apitypings/testdata/genericmap/genericmap.go
Steven Masley f0bd258ff1 feat: move proxy settings page to deployment options (#8246)
* feat: Move workspace proxy page to deployment options

Workspace proxy settings page is now an admin feature

* WorkspaceProxy response extends region
2023-06-30 11:32:35 -04:00

29 lines
463 B
Go

package genericmap
type Foo struct {
Bar string `json:"bar"`
}
type Buzz struct {
Foo `json:"foo"`
Bazz string `json:"bazz"`
}
type Custom interface {
Foo | Buzz
}
type FooBuzz[R Custom] struct {
Something []R `json:"something"`
}
// Not yet supported
//type FooBuzzMap[R Custom] struct {
// Something map[string]R `json:"something"`
//}
// Not yet supported
//type FooBuzzAnonymousUnion[R Foo | Buzz] struct {
// Something []R `json:"something"`
//}