Order - Go SDK

Order type definition

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

Supported Types

ProviderName

1order := components.CreateOrderProviderName(components.ProviderName{/* values here */})

1order := components.CreateOrderStr(string{/* values here */})

Union Discrimination

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

1switch order.Type {
2 case components.OrderTypeProviderName:
3 // order.ProviderName is populated
4 case components.OrderTypeStr:
5 // order.Str is populated
6}