ClearToolInputs - Go SDK

ClearToolInputs type definition

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

Supported Types

1clearToolInputs := components.CreateClearToolInputsBoolean(bool{/* values here */})

1clearToolInputs := components.CreateClearToolInputsArrayOfStr([]string{/* values here */})

1clearToolInputs := components.CreateClearToolInputsAny(any{/* values here */})

Union Discrimination

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

1switch clearToolInputs.Type {
2 case components.ClearToolInputsTypeBoolean:
3 // clearToolInputs.Boolean is populated
4 case components.ClearToolInputsTypeArrayOfStr:
5 // clearToolInputs.ArrayOfStr is populated
6 case components.ClearToolInputsTypeAny:
7 // clearToolInputs.Any is populated
8}