Use the Type field to determine which variant is active, then access the corresponding field:
switch ignore.Type { case components.IgnoreTypeProviderName: // ignore.ProviderName is populated case components.IgnoreTypeStr: // ignore.Str is populated}
⌘I
Assistant
Responses are generated using AI and may contain mistakes.