Skip to content

Conversation

@mikecdavis
Copy link
Contributor

Summary

  • Change const to var to allow being overridden.

A requirement of Optimizely Agent is to differentiate events originating from Agent vs the native go-sdk. Making these symbols variables allows the Agent build to set them during compile time via linker flags. Ex:

-X github.com/optimizely/go-sdk/pkg/event.ClientName=Agent

@mikecdavis mikecdavis merged commit d19671f into master Jan 14, 2020
@mikecdavis mikecdavis deleted the mikecdavis/OASIS-5797-set-name-version branch January 14, 2020 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants