Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.
/ sixpack-go Public archive

Go client library for SeatGeek's Sixpack AB testing framework.

License

Notifications You must be signed in to change notification settings

subosito/sixpack-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sixpack-go

Build Status

Go client library for SeatGeek's Sixpack AB testing framework.

Usage

Here's the basic example:

// import "github.com/subosito/sixpack-go/sixpack"

session, err := sixpack.NewSession(sixpack.Options{})
if err != nil {
	t.Error(err)
}

// Participate in a test (create the test if necesssary)
res, err := session.Participate("new-test", []string{"alternative-1", "alternative-2"}, "")
if err == nil {
	fmt.Printf("%+v\n", res)
}

// Convert
rec, err := session.Convert("new-test")
if err == nil {
	fmt.Printf("%+v\n", rec)
}

Each session has a ClientID associates with it that must be preseved across requests.

Session initializes requires Options which you can use to customize the session.

// import "net/url"

opts := sixpack.Options{
	BaseUrl: url.Parse("http://sixpack.server.com"),
}

session := sixpack.NewSession(opts)

Notes

The sixpack-go package is tested using drone.io services. You can see the build script on https://gist.github.com/subosito/6412007.

What is Sixpack?

Sixpack is a language-agnostic AB testing framework. It makes easy to run A/B tests across multiple web services written in different languages.

About

Go client library for SeatGeek's Sixpack AB testing framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages