Documentation ¶
Overview ¶
Package randy provides a simple way to generate random data.
Index ¶
- func Color() (string, error)
- func ColorHex() (string, error)
- func Email() (string, error)
- func EmailWithProvider(provider string) (string, error)
- func FemaleName() (string, error)
- func Ipv4() (string, error)
- func Ipv4WithCustomOctets(formatString string) (string, error)
- func Ipv6() (string, error)
- func Ipv6WithCustomSegments(formatString string) (string, error)
- func MaleName() (string, error)
- func Name() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Email ¶
Generates an email. Generated emails can contain numbers and periods. The IDs use the name database as reference.
func EmailWithProvider ¶
Generates an email with the given provider. `provider` refers to a custom domain. Example: `gmail.com`
func Ipv4WithCustomOctets ¶
Generates an IPv4 address with custom octets set. `fomartString` is of form `#.#.#.#` where each octet is denoted by a single `#`. To ensure that a particular octet is always in the IP, one can replace `#` with the value. Example: `255.#.13.#` is valid. `255.##.13.#`, `255.13` or `255:13:#.#` are invalid variations.
func Ipv6WithCustomSegments ¶
Generates an IPv6 address with custom segments set. `fomartString` is of form `#:#:#:#:#:#:#:#` where each segment is denoted by a single `#`. To ensure that a particular segment is always in the IP, one can replace `#` with the value. Example: `ff21:#:255:#:#:#:#:13` is valid.
Types ¶
This section is empty.