InputsContent2 - Go SDK

InputsContent2 type definition

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

Supported Types

1inputsContent2 := components.CreateInputsContent2ArrayOfInputsContent1([]components.InputsContent1{/* values here */})

1inputsContent2 := components.CreateInputsContent2Str(string{/* values here */})

1inputsContent2 := components.CreateInputsContent2Any(any{/* values here */})

Union Discrimination

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

1switch inputsContent2.Type {
2 case components.InputsContent2TypeArrayOfInputsContent1:
3 // inputsContent2.ArrayOfInputsContent1 is populated
4 case components.InputsContent2TypeStr:
5 // inputsContent2.Str is populated
6 case components.InputsContent2TypeAny:
7 // inputsContent2.Any is populated
8}