Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrResponseNotFound = errors.New("response not found")
ErrResponseNotFound is the error when a supplied 8 ball response isn't found.
Functions ¶
func ResponseType ¶
ResponseType returns whether a response is positive, neutral, or negative. Values returned are `1` for positive, `0` for neutral, and `-1` for negative.
Types ¶
type CryptoRandSource ¶ added in v0.1.1
type CryptoRandSource struct{}
CryptoRandSource is a `crypto/rand` backed source that satisfies the `math/rand.Source` interface definition. It can be used as `r := rand.New(NewCryptoRandSource())` See: https://stackoverflow.com/a/35208651/1908967
func NewCryptoRandSource ¶ added in v0.1.1
func NewCryptoRandSource() CryptoRandSource
func (CryptoRandSource) Int63 ¶ added in v0.1.1
func (CryptoRandSource) Int63() int64
func (CryptoRandSource) Seed ¶ added in v0.1.1
func (CryptoRandSource) Seed(int64)
Click to show internal directories.
Click to hide internal directories.