github.com/kubeshop/testkube@v1.17.23/pkg/featureflags/featureflags.go (about) 1 package featureflags 2 3 import ( 4 "github.com/kelseyhightower/envconfig" 5 ) 6 7 type FeatureFlags struct { 8 LogsV2 bool `envconfig:"FF_LOGS_V2" default:"false"` 9 } 10 11 func Get() (ff FeatureFlags, err error) { 12 if err := envconfig.Process("", &ff); err != nil { 13 return ff, err 14 } 15 return 16 }