Order - Go SDK
The Go SDK and docs are currently in beta. Report issues on GitHub.
1order := components.CreateOrderProviderName(components.ProviderName{/* values here */})
1order := components.CreateOrderStr(string{/* values here */})
Use the Type field to determine which variant is active, then access the corresponding field:
Type
1switch order.Type {2 case components.OrderTypeProviderName:3 // order.ProviderName is populated4 case components.OrderTypeStr:5 // order.Str is populated6}