package
module
Version:
v0.0.0-...-a505e4f
Opens a new window with list of versions in this module.
Published: Dec 12, 2019
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Documentation
¶
-
func Mock(v interface{}) (interface{}, error)
-
func MockTag(v interface{}, tag string) (interface{}, error)
-
func RandDomain() string
-
func RandEmail() string
-
func RandFloat(min, max float64) float64
-
func RandFloatStep(min, max, step float64) float64
-
func RandIPv4() string
-
func RandIPv6() string
-
func RandInt(min, max int64) int64
-
func RandIntStep(min, max, step int64) int64
-
func RandName() string
-
func RandText() string
-
func RandTime(format string) string
-
func RandURL() string
-
func RandUUID() string
-
func RandUint(min, max uint64) uint64
-
func RandUintStep(min, max, step uint64) uint64
-
func RandWord() string
func Mock(v interface{}) (interface{}, error)
Mock Inject mock data into the structure
func MockTag(v interface{}, tag string) (interface{}, error)
MockTag Inject mock data into the structure by tag
RandDomain Returns a random domain
RandEmail Returns a random Email
RandFloat Returns an float64 between min and max.
RandFloatStep Returns an float64 whose step distance between min and max is step.
RandIPv4 Returns a random IPv4 address
RandIPv6 Returns a random IPv6 address
RandInt Returns an int64 between min and max.
RandIntStep Returns an int64 whose step distance between min and max is step.
RandName Returns a random name
RandText Returns a random text
RandTime Returns a random time
RandURL Returns a random URL
RandUUID Returns a random UUID
RandUint Returns an uint64 between min and max.
RandUintStep Returns an uint64 whose step distance between min and max is step.
RandWord Returns a random word
Source Files
¶
Click to show internal directories.
Click to hide internal directories.