BaseInputsContent2 - Go SDK

BaseInputsContent2 type definition

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

Supported Types

1baseInputsContent2 := components.CreateBaseInputsContent2ArrayOfBaseInputsContent1([]components.BaseInputsContent1{/* values here */})

1baseInputsContent2 := components.CreateBaseInputsContent2Str(string{/* values here */})

Union Discrimination

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

1switch baseInputsContent2.Type {
2 case components.BaseInputsContent2TypeArrayOfBaseInputsContent1:
3 // baseInputsContent2.ArrayOfBaseInputsContent1 is populated
4 case components.BaseInputsContent2TypeStr:
5 // baseInputsContent2.Str is populated
6}