Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.
Input for a response request - can be a string or array of items

Supported Types

inputsUnion := components.CreateInputsUnionStr(string{/* values here */})

inputsUnion := components.CreateInputsUnionArrayOfInputsUnion1([]components.InputsUnion1{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:
switch inputsUnion.Type {
	case components.InputsUnionTypeStr:
		// inputsUnion.Str is populated
	case components.InputsUnionTypeArrayOfInputsUnion1:
		// inputsUnion.ArrayOfInputsUnion1 is populated
}