Go library which provides tools for generating arbitrary data.
Go to file
Charles Iliya Krempeaux 69d97404f4 funcs with default 2021-11-20 17:05:20 -08:00
LICENSE initial commit 2015-01-29 00:45:50 -08:00
README.md updated README.md file. Added text about online documentation. 2015-01-29 00:49:30 -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
default.go funcs with default 2021-11-20 17:05:20 -08:00
doc.go initial commit 2015-01-29 00:45:50 -08:00
runes.go tweak 2015-01-29 01:12:00 -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()

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-arbitrary

GoDoc