Assuming you have GrowthBook running locally via docker-compose
go run main.go2026/01/04 16:29:03 INFO Starting source="Growthbook polling datasource"
2026/01/04 16:29:03 INFO Loading features
2026/01/04 16:29:03 INFO First load finished source="Growthbook polling datasource"
2026/01/04 16:29:03 INFO Started source="Growthbook polling datasource"
2026/01/04 16:29:03 userContext: {
"id": "02ae0723732ed10a0131ba519d3e1c98"
}
2026/01/04 16:29:03 Viewed Experiment
2026/01/04 16:29:03 Experiment: {
"key": "myTrackingKey",
"variations": [
false,
true
],
"weights": [
0.5,
0.5
],
"active": null,
"coverage": 1,
"ranges": null,
"condition": {},
"parentConditions": null,
"namespace": null,
"force": null,
"hashAttribute": "id",
"fallbackAttribute": "",
"hashVersion": 2,
"meta": [
{
"key": "0",
"name": "Control",
"passthrough": false
},
{
"key": "1",
"name": "Variation",
"passthrough": false
}
],
"filters": null,
"seed": "aab6cb2c-5bdb-4081-9bf3-849b69e11025",
"name": "Experiemnt",
"phase": "0",
"disableStickyBucketing": false,
"bucketVersion": 0,
"minBucketVersion": 0
}
2026/01/04 16:29:03 Result: {
"inExperiment": true,
"variationId": 0,
"value": false,
"hashUsed": true,
"hashAttribute": "id",
"hashValue": "02ae0723732ed10a0131ba519d3e1c98",
"featureId": "feature1",
"key": "0",
"bucket": 0.1083,
"name": "Control",
"passthrough": false,
"stickyBucketUsed": false
}
2026/01/04 16:29:03 Extra: <nil>
2026/01/04 16:29:03 feature is off
2026/01/04 16:29:03 feature details: {
"ruleId": "fr_1j14ku1omjwrctju",
"value": false,
"source": "experiment",
"on": false,
"off": true,
"experiment": {
"key": "myTrackingKey",
"variations": [
false,
true
],
"weights": [
0.5,
0.5
],
"active": null,
"coverage": 1,
"ranges": null,
"condition": {},
"parentConditions": null,
"namespace": null,
"force": null,
"hashAttribute": "id",
"fallbackAttribute": "",
"hashVersion": 2,
"meta": [
{
"key": "0",
"name": "Control",
"passthrough": false
},
{
"key": "1",
"name": "Variation",
"passthrough": false
}
],
"filters": null,
"seed": "aab6cb2c-5bdb-4081-9bf3-849b69e11025",
"name": "Experiemnt",
"phase": "0",
"disableStickyBucketing": false,
"bucketVersion": 0,
"minBucketVersion": 0
},
"experimentResult": {
"inExperiment": true,
"variationId": 0,
"value": false,
"hashUsed": true,
"hashAttribute": "id",
"hashValue": "02ae0723732ed10a0131ba519d3e1c98",
"featureId": "feature1",
"key": "0",
"bucket": 0.1083,
"name": "Control",
"passthrough": false,
"stickyBucketUsed": false
}
}
2026/01/04 16:29:03 INFO Closing source="Growthbook polling datasource"