utils

package
v1.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v1.0.0

func Contains(s []string, str string) bool

func ContextToMap added in v1.12.0

func ContextToMap(ctx ffcontext.Context) map[string]interface{}

ContextToMap convert the context to a MAP to use the query on it.

func ConvertEvaluationCtxFromRequest added in v1.20.1

func ConvertEvaluationCtxFromRequest(targetingKey string, custom map[string]interface{}) ffcontext.Context

ConvertEvaluationCtxFromRequest convert the result of an unmarshal request from the API to a ffcontext.Context @param targetingKey the targeting key to use for the context @param custom the custom attributes to add to the context @return ffcontext.Context

func Hash

func Hash(s string) uint32

Hash is taking a string and convert.

func IsIntegral added in v1.20.1

func IsIntegral(val float64) bool

IsIntegral returns true if the float is an integer.

func JSONTypeExtractor added in v1.5.0

func JSONTypeExtractor(variation interface{}) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL