8000 GitHub - rasendubi/eppo-golang-sdk
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rasendubi/eppo-golang-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eppo SDK for Golang

EppoClient is a client sdk for the eppo.cloud randomization API. It is used to retrieve the experiments data and put it to in-memory cache, and then get assignments information.

Getting Started

Refer to our SDK documentation for how to install and use the SDK.

Supported Go Versions

This version of the SDK is compatible with Go v1.19 and above.

Example

	import (
		"github.com/Eppo-exp/golang-sdk/v2/eppoclient"
	)

	var eppoClient = &eppoclient.EppoClient{}

	func main() {
		eppoClient = eppoclient.InitClient(eppoclient.Config{
			ApiKey:           "<your_api_key>",
			AssignmentLogger: eppoclient.AssignmentLogger{},
		})
	}

	func someBLFunc() {
		assignment, _ := eppoClient.GetStringAssignment("subject-1", "experiment_5", sbjAttrs)

		if assignment == "control" {
			// do something
		}
	}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.7%
  • Makefile 2.3%
0