Stop - Go SDK

Stop type definition

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

Stop sequences (up to 4)

Supported Types

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

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

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

Union Discrimination

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

1switch stop.Type {
2 case components.StopTypeStr:
3 // stop.Str is populated
4 case components.StopTypeArrayOfStr:
5 // stop.ArrayOfStr is populated
6 case components.StopTypeAny:
7 // stop.Any is populated
8}