wonderful-branch-2202
03/06/2023, 11:56 PMwonderful-branch-2202
03/07/2023, 12:20 AMfresh-football-47124
wonderful-branch-2202
03/07/2023, 3:27 AM// Perform feature test.
if gb.growthbook.Feature("enableskipquestion").On {
chat.EnableGenderQuestion = false
<http://log.Info|log.Info>().Msg("Mandatory skip feature off")
} else {
chat.EnableGenderQuestion = false
<http://log.Info|log.Info>().Msg("Mandatory skip feature defaulted")
}
fresh-football-47124
wonderful-branch-2202
03/07/2023, 3:28 AMwonderful-branch-2202
03/07/2023, 3:29 AM<http://abTestConfigOnce.Do|abTestConfigOnce.Do>(func() {
data := []byte(`{
"enableskipquestion": {
"defaultValue": true
}
"enablegenderquestion": {
"defaultValue": true
}
}`)
features := growthbook.ParseFeatureMap(data)
// Create context and main GrowthBook object.
context := growthbook.NewContext().WithFeatures(features)
gb := growthbook.New(context)
abTestConfigInstance = &AbTestConfig{data: data, growthbook: gb}
<http://log.Info|log.Info>().Interface("abTestConfigInstance", abTestConfigInstance).Msg("Sourceservice: abTestConfigInstance")
})
fresh-football-47124
wonderful-branch-2202
03/07/2023, 3:30 AMfresh-football-47124
wonderful-branch-2202
03/07/2023, 3:31 AMfresh-football-47124
wonderful-branch-2202
03/07/2023, 3:36 AMwonderful-branch-2202
03/07/2023, 3:36 AMfresh-football-47124
fresh-football-47124
fresh-football-47124
fresh-football-47124
fresh-football-47124
wonderful-branch-2202
03/07/2023, 3:38 AMwonderful-branch-2202
03/07/2023, 3:39 AM