Skip to content

Commit 5059af0

Browse files
authored
feat: at Int variation to global feature flag client (#335)
1 parent d8399c4 commit 5059af0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

featureflag/global.go

+4
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ func Enabled(key, userID string, attrs ...Attr) bool {
4141
func Variation(key, defaultVal, userID string, attrs ...Attr) string {
4242
return GetGlobalClient().Variation(key, defaultVal, userID, attrs...)
4343
}
44+
45+
func Int(key string, defaultVal int, userID string, attrs ...Attr) int {
46+
return GetGlobalClient().Int(key, defaultVal, userID, attrs...)
47+
}

0 commit comments

Comments
 (0)