go-sdk

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 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 Lekko backend. 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. Also, make sure to change the owner and repo name to a repository under 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