Skip to content

joerdav/flagship

Repository files navigation

flagship - Easily use feature-flags to ship code, with DynamoDB.

GoDoc

Install

go get github.com/joerdav/flagship@latest

Example

package main

import "github.com/joerdav/flagship"

func main() {
		s, err := flagship.New(context.Background())
		if err != nil {
			t.Errorf("unexpected error got %v", err)
		}
		if s.Bool(context.Background(), "newfeature") {
			log.Println("a new feature")
		} else {
			log.Println("old code")
		}
}

About

flagship - A package for retrieving feature flags from a dynamo document.

Resources

License

Stars

Watchers

Forks

Packages

No packages published