go-arbitrary/default.go

29 lines
457 B
Go
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package arbitrary
import (
"math/rand"
"time"
)
var (
Default = New( rand.NewSource( time.Now().UTC().UnixNano() ) )
)
// Bool returns an arbitrary bool.
func Bool() bool {
return Default.Bool()
}
// PhoneNumber returns an arbitrary phonenumber.
func PhoneNumber() string {
return Default.PhoneNumber()
}
func Runes(a ...interface{}) []rune {
return Default.Runes(a...)
}
func String(a ...interface{}) string {
return Default.String(a...)
}