Is there a reason why IsFeatureEnabled returns interface{} and not bool?
Your docs suggest using the library the following way:
isMyFlagEnabled, err := client.IsFeatureEnabled(
FeatureFlagPayload{
Key: "flag-key",
DistinctId: "distinct_id_of_your_user",
})
if isMyFlagEnabled {
// Do something differently for this user
}
Is there a reason why IsFeatureEnabled returns
interface{}
and notbool
?Your docs suggest using the library the following way:
With
interface{}
return value it is not possible.Could you update the code or the docs?