Documentation ¶ Index ¶ func Hash(s string) uint32 func UserToJSON(u ffuser.User) map[string]interface{} type Flag func (f *Flag) Value(flagName string, user ffuser.User) interface{} Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Hash ¶ func Hash(s string) uint32 func UserToJSON ¶ func UserToJSON(u ffuser.User) map[string]interface{} Types ¶ type Flag ¶ type Flag struct { Disable bool Rule string Percentage int True interface{} // Value if Rule applied, and in percentage False interface{} // Value if Rule applied and not in percentage Default interface{} // Value if Rule does not applied } func (*Flag) Value ¶ func (f *Flag) Value(flagName string, user ffuser.User) interface{} Value is returning the Value associate to the flag (True or False) based if the toggle apply to the user or not. Source Files ¶ View all Source files flag.go Click to show internal directories. Click to hide internal directories.