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