Value1 - Go SDK

Value1 type definition

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

Filter value (scalar or array depending on operator)

Supported Types

1value1 := operations.CreateValue1Str(string{/* values here */})

1value1 := operations.CreateValue1Number(float64{/* values here */})

1value1 := operations.CreateValue1ArrayOfValue2([]operations.Value2{/* values here */})

Union Discrimination

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

1switch value1.Type {
2 case operations.Value1TypeStr:
3 // value1.Str is populated
4 case operations.Value1TypeNumber:
5 // value1.Number is populated
6 case operations.Value1TypeArrayOfValue2:
7 // value1.ArrayOfValue2 is populated
8}