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

Supported Types

BaseInputsPhaseCommentary

baseInputsPhaseUnion := components.CreateBaseInputsPhaseUnionBaseInputsPhaseCommentary(components.BaseInputsPhaseCommentary{/* values here */})

BaseInputsPhaseFinalAnswer

baseInputsPhaseUnion := components.CreateBaseInputsPhaseUnionBaseInputsPhaseFinalAnswer(components.BaseInputsPhaseFinalAnswer{/* values here */})

baseInputsPhaseUnion := components.CreateBaseInputsPhaseUnionAny(any{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:
switch baseInputsPhaseUnion.Type {
	case components.BaseInputsPhaseUnionTypeBaseInputsPhaseCommentary:
		// baseInputsPhaseUnion.BaseInputsPhaseCommentary is populated
	case components.BaseInputsPhaseUnionTypeBaseInputsPhaseFinalAnswer:
		// baseInputsPhaseUnion.BaseInputsPhaseFinalAnswer is populated
	case components.BaseInputsPhaseUnionTypeAny:
		// baseInputsPhaseUnion.Any is populated
}