Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.42 KB

README.md

File metadata and controls

52 lines (33 loc) · 1.42 KB

GoDoc

feature_flags

import "github.com/go-coldbrew/feature-flags"

Index

Constants

const (
    EngineUnleash = "unleash"
)
func GetVariant(name string, ctx engines.Context) *engines.Variant

GetVariant get variant for a feature flag, returns disabled variant if client is not initialised

func Initialize(appName string, cfg config.Config) error

Initialize initializes an engines.FeatureFlag instance, return error if failed

func IsEnabled(name string, ctx engines.Context) bool

IsEnabled check if a feature flag is enabled, returns false if client is not initialized

Generated by gomarkdoc