Skip to content

Commit

Permalink
feat: at Int variation to global feature flag client (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
j4mcs authored Apr 29, 2022
1 parent d8399c4 commit 5059af0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions featureflag/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
}

0 comments on commit 5059af0

Please sign in to comment.