Repository navigation
Typed feature flags for Go, with targeted rollouts, live refresh, and consistent decisions within a request.
What's included
- Boolean, string, integer, float, and structured flags with explicit fallbacks and decision metadata. Decode application structs and slices with ObjectAs.
- Exact identity and typed attribute targeting, named variants, weighted splits, scheduled rules, and progressive rollouts.
- Memory, file, HTTP, and custom sources. Complete valid documents publish atomically; refresh failures retain the last valid snapshot. Applications own refresh and shutdown.
- Captured native snapshots that preserve observer and tracking configuration.
- Optional direct LaunchDarkly and OpenFeature adapters, plus a native OpenFeature provider. Vendor SDK evaluation and lifecycle semantics remain explicit.
Try it
go get github.com/goforj/featureOptional SDK modules:
go get github.com/goforj/feature/driver/launchdarklyfeature
go get github.com/goforj/feature/driver/openfeaturefeatureThe root needs Go 1.24 or newer and has no external runtime dependencies. LaunchDarkly needs Go 1.25; OpenFeature needs Go 1.26. All three modules have independent v0.1.0 tags.
See the quick start, provider capabilities, and behavior contract.
This initial release covers the standalone library and app-owned integration. Generated GoForj Feature components and hosted LaunchDarkly account verification remain separate. The release verification record records module publication and application checks.