Go library which provides tools for generating arbitrary data.
Go to file
Charles Iliya Krempeaux 10e811e304 initial commit 2015-01-29 00:45:50 -08:00
LICENSE initial commit 2015-01-29 00:45:50 -08:00
README.md initial commit 2015-01-29 00:45:50 -08:00
arbitrary.go initial commit 2015-01-29 00:45:50 -08:00
bool.go initial commit 2015-01-29 00:45:50 -08:00
bool_test.go initial commit 2015-01-29 00:45:50 -08:00
doc.go initial commit 2015-01-29 00:45:50 -08:00
runes.go initial commit 2015-01-29 00:45:50 -08:00
runes_test.go initial commit 2015-01-29 00:45:50 -08:00
string.go initial commit 2015-01-29 00:45:50 -08:00
string_test.go initial commit 2015-01-29 00:45:50 -08:00

README.md

go-arbitrary

go-arbitrary is a Go library which provides tools for generating arbitrary data.

Example

src := rand.NewSource( time.Now().UTC().UnixNano() )
arb := arbitrary.New(src)

// Generate an arbitrary bool.
// Might be false, might be true.
bl := arb.Bool()

// Generate an arbitrary string.
s := arb.String()