Unleash / unleash-client-go

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

#118 Add IsFeatureEnabled function to client #119

Closed courupteddata closed 2 years ago

courupteddata commented 2 years ago

About the changes

This change adds an IsFeatureEnabled function that is a variant of the IsEnabled function but accepts a api.Feature instead of a string for the case where you already have the feature.

Closes #118

Discussion points

I'm not certain on the function name and don't want to cause confusion, but I thought it made sense.

I think this functionality could make sense for others and if there is a better approach someone else wants I'm all ears. 👂

courupteddata commented 2 years ago

@FredrikOseberg I've added a readme entry for this change.