local evaluation sdks for golang.
- add
github.com/LambdaTest/lambda-featureflag-go-sdk latest
in go.mod - run locally.
$ go mod vendor
- Add below config variable and dependent key through env variable(os.Setenv(key,value)).
LOCAL_EVALUATION_CONFIG_DEBUG = false (enables debug logs for amplitude).
LOCAL_EVALUATION_CONFIG_SERVER_URL = "https://api.lab.amplitude.com/" (amplitude server url or evaluation proxy server url).
LOCAL_EVALUATION_CONFIG_POLL_INTERVAL = 30 (poller interval for flag rules from amplitude).
LOCAL_EVALUATION_CONFIG_POLLER_REQUEST_TIMEOUT = 10 (poller request timeout).
LOCAL_EVALUATION_DEPLOYMENT_KEY = "" (server side deployment key).