Skip to content

harness/ff-golang-server-sdk

Folders and files

NameName
Last commit message
Last commit date
Mar 15, 2021
Apr 22, 2021
Apr 27, 2021
Apr 22, 2021
Apr 22, 2021
Mar 15, 2021
Mar 15, 2021
Apr 22, 2021
Apr 22, 2021
Apr 22, 2021
Mar 15, 2021
Mar 15, 2021
Mar 1, 2021
Mar 15, 2021
Mar 3, 2021
Mar 29, 2021
Apr 27, 2021
Apr 27, 2021

Repository files navigation

Harness FFM Server-side SDK for Go

Go Report Card

FFM overview

FFM is feature flag management platform for helping teams to deliver better software and faster.

Supported GO versions

This version of FFM has been tested with GO 1.14

Install

go get github.com/wings-software/ff-client-sdk-go

Usage

First we need to import lib with harness alias import harness "github.com/wings-software/ff-client-sdk-go/pkg/api"

Next we create client instance for interaction with api client := harness.NewClient(sdkKey)

Target definition can be user, device, app etc.

target := dto.NewTargetBuilder("key").
 		Firstname("John").
 		Lastname("doe").
 		Email("johndoe@acme.com").
 		Country("USA").
 		Custom("height", 160).
 		Build()

Evaluating Feature Flag showFeature, err := client.BoolVariation(featureFlagKey, target, false)