Feature SDK implementation
Go
Low-overhead decisions for Go APIs, services, and command-line workloads.
Go serverThis runtime cannot execute inside a Next.js browser process. The page shows the native, official SDK shape; use the JavaScript, React, or Next.js pages for a live decision and event round trip with the same project, flag, event, and visitor ID.
Implementation
Official docs ↗go get github.com/optimizely/go-sdk/v2
client, _ := optimizelyfactory.Client(SDKKey)
user := client.CreateUserContext("visitor-123", map[string]interface{}{"plan": "pro"})
decision := user.Decide("demo_flag", nil)
user.TrackEvent("demo_purchase", nil)