Example: Basic Code using Go Split SDK 5.0.1 Localhost mode reading from Yaml file
- Go go1.10.3
How to use:
- Yaml file to add Split names and Treatments:
- Update Split names in:
- The YAML file has specific format, make sure the treatment lines have 4 character spaces.
- Based on the Yaml content, when the user id "key" is used in Treatment() method, "off" treatment is returned, otherwise "on" treatment is returned.