From 5059af090699de3ffeb60131d23cb5e345b5be0c Mon Sep 17 00:00:00 2001 From: James McNeil <8350153+j4mcs@users.noreply.github.com> Date: Fri, 29 Apr 2022 19:11:20 +0100 Subject: [PATCH] feat: at Int variation to global feature flag client (#335) --- featureflag/global.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/featureflag/global.go b/featureflag/global.go index 8630666..1c75c4f 100644 --- a/featureflag/global.go +++ b/featureflag/global.go @@ -41,3 +41,7 @@ func Enabled(key, userID string, attrs ...Attr) bool { func Variation(key, defaultVal, userID string, attrs ...Attr) string { return GetGlobalClient().Variation(key, defaultVal, userID, attrs...) } + +func Int(key string, defaultVal int, userID string, attrs ...Attr) int { + return GetGlobalClient().Int(key, defaultVal, userID, attrs...) +}