Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.
Stop sequences (up to 4)

Supported Types

stop := components.CreateStopStr(string{/* values here */})

stop := components.CreateStopArrayOfStr([]string{/* values here */})

stop := components.CreateStopAny(any{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:
switch stop.Type {
	case components.StopTypeStr:
		// stop.Str is populated
	case components.StopTypeArrayOfStr:
		// stop.ArrayOfStr is populated
	case components.StopTypeAny:
		// stop.Any is populated
}