SDKs
Go

Go

Installation

$ go get github.com/progressively-crew/sdk-go@latest

Usage

Create an SDK (Build method)

sdk := progressively.SdkBuilder("valid-sdk-key", "BACKEND_URL").Build()

AddField

Fields is an option that allows passing data about your users to create targeting strategies. For instance, you can set an email field, and in Progressively's dashboard, you can create a rule that only targets people that use an expected domain:

sdk := progressively.SdkBuilder("valid-sdk-key", "BACKEND_URL").AddField("email", "marvin.frachet@something.com").Build()

Evaluate

Retrieve the status of a given flag by its key.

flagValue := sdk.Evaluate("theFlagKey")

Load the flags

Makes an HTTP request to the Progressively server to retrieve the status of the flags.

sdk.LoadFlags()