Unleash / unleash-client-go

Unleash client SDK for Go
https://docs.getunleash.io
Apache License 2.0
138 stars 55 forks source link

feat(api): add type to Feature #168

Closed jameshartig closed 10 months ago

jameshartig commented 10 months ago

About the changes

Adds the Type field to api.Feature which is already returned by the API but was not captured in the Go struct.

Closes #162

Important files

Discussion points

This will be slightly difficult for us to get to in normal usage since IsEnabled and GetVariant do not expose the underlying api.Feature. We plan to add our own map[string]*api.Feature to our internal client so we can resolve the underlying feature after we call GetVariant.