Multivariate Flags
Multivariate flags return one of several predefined string values, allowing you to serve different variations of a feature to different users.
When creating a multivariate flag, you define a list of possible string values (variants) and a default value. Targeting rules then determine which variant each user receives. This is useful for A/B testing, gradual migrations, or serving different UI configurations.
variant := client.StringVariation("checkout-theme", user, "default")
// Returns one of: "default", "modern", "compact"
Each variant can be assigned to specific users through targeting rules or distributed across your user base using percentage rollouts.