abtest

command module
v0.0.0-...-abe7cdd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

ABTest

 import (
 	"fmt"
 	"github.com/KunBetter/ABTest/core"
 	"io/ioutil"
 )
 
 func main() {
 	ab := &core.ABTest{}
 	ab.Init()
 
 	buf, err := ioutil.ReadFile("ABExpConfig.json")
 	if err != nil {
 		fmt.Print(err)
 		return
 	}
 
 	ab.LoadConfig([]string{string(buf)})
 
 	reqMap := make(map[string]string)
 	tagMap := ab.Distribute(reqMap)
 
 	fmt.Println(tagMap)
 }
Next Plan
  • Experimental variables matching supports multiple operators.
  • Support ‰ traffic experiment.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
dim

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL