Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

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

ContainerAuto

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

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:
switch container.Type {
	case components.ContainerUnionTypeStr:
		// container.Str is populated
	case components.ContainerUnionTypeContainerAuto:
		// container.ContainerAuto is populated
}