go-sdk

module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2023 License: Apache-2.0

README

go-sdk

Golang sdk for reading feature flags

Example

This repo includes an example go program that retrieves a feature flag from the Lekko backend. In order to test it, run

go run cmd/example/main.go --lekko-apikey=<replace-with-your-api-key>

Make sure to replace the api key with the one given to your organization. Alternatively, you can build and run with docker, which may resemble how you might containerize your application and run it remotely.

make dockerbuild

This will build a docker image locally. You can then run it with

docker run --name example lekko/example:latest --lekko-apikey=<replace-with-your-api-key>

Directories

Path Synopsis
cmd
example command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL