Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

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

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

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

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:
switch clearToolInputs.Type {
	case components.ClearToolInputsTypeBoolean:
		// clearToolInputs.Boolean is populated
	case components.ClearToolInputsTypeArrayOfStr:
		// clearToolInputs.ArrayOfStr is populated
	case components.ClearToolInputsTypeAny:
		// clearToolInputs.Any is populated
}