Go quickstart
1. Install hypertune-go-gen
hypertune-go-gen
Once you have a Go application ready, install the hypertune-go-gen
tool by running:
2. Generate the client
Set the HYPERTUNE_TOKEN
environment variable to your project token which you can find in the Settings tab of your project.
Then generate the client by running:
Alternatively, you can add the following go generate
directive to one of your Go files to automatically re-generate the client when you run go generate ./...
:
3. Use the client
Finally, instantiate the client and evaluate your flags:
That's it
Now you can update the logic for ExampleFlag
from the Hypertune UI without updating your code or waiting for a new build, deployment, app release or service restart.
To add a new flag, create it in the Hypertune UI then regenerate the client.
Last updated