Container - Go SDK

Container type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

1container := components.CreateContainerStr(string{/* values here */})

ContainerAuto

1container := components.CreateContainerContainerAuto(components.ContainerAuto{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:

1switch container.Type {
2 case components.ContainerUnionTypeStr:
3 // container.Str is populated
4 case components.ContainerUnionTypeContainerAuto:
5 // container.ContainerAuto is populated
6}