builtin

package
v0.84.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(x, y any, ignoreKeys ...string) bool

func Diff

func Diff(x, y any, ignoreKeys ...string) string

func Intersect added in v0.58.3

func Intersect(x, y any) any

func Time

func Time(v any) time.Time

func Url added in v0.76.0

func Url(rawURL string) *url.URL

Types

type Faker added in v0.73.0

type Faker struct {
	// contains filtered or unexported fields
}

func NewFaker added in v0.73.0

func NewFaker() *Faker

func (*Faker) Bool added in v0.73.0

func (f *Faker) Bool() bool

func (*Faker) Color added in v0.73.0

func (f *Faker) Color() string

func (*Faker) Date added in v0.73.0

func (f *Faker) Date() time.Time

func (*Faker) Day added in v0.73.0

func (f *Faker) Day() int

func (*Faker) Digit added in v0.73.0

func (f *Faker) Digit() string

func (*Faker) DigitN added in v0.73.0

func (f *Faker) DigitN(n int) string

func (*Faker) Domain added in v0.73.0

func (f *Faker) Domain() string

func (*Faker) Email added in v0.73.0

func (f *Faker) Email() string

func (*Faker) Emoji added in v0.73.0

func (f *Faker) Emoji() string

func (*Faker) FirstName added in v0.73.0

func (f *Faker) FirstName() string

func (*Faker) Float added in v0.73.0

func (f *Faker) Float() float64

func (*Faker) FloatRange added in v0.73.0

func (f *Faker) FloatRange(min, max float64) float64

func (*Faker) HTTPMethod added in v0.73.0

func (f *Faker) HTTPMethod() string

func (*Faker) HTTPStatusCode added in v0.73.0

func (f *Faker) HTTPStatusCode() int

func (*Faker) HTTPVersion added in v0.73.0

func (f *Faker) HTTPVersion() string

func (*Faker) HexColor added in v0.73.0

func (f *Faker) HexColor() string

func (*Faker) Hour added in v0.73.0

func (f *Faker) Hour() int

func (*Faker) IPv4 added in v0.73.0

func (f *Faker) IPv4() string

func (*Faker) IPv6 added in v0.73.0

func (f *Faker) IPv6() string

func (*Faker) Int added in v0.73.0

func (f *Faker) Int() int

func (*Faker) IntRange added in v0.73.0

func (f *Faker) IntRange(min int, max int) int

func (*Faker) LastName added in v0.73.0

func (f *Faker) LastName() string

func (*Faker) Letter added in v0.73.0

func (f *Faker) Letter() string

func (*Faker) LetterN added in v0.73.0

func (f *Faker) LetterN(n int) string

func (*Faker) Lexify added in v0.73.0

func (f *Faker) Lexify(str string) string

func (*Faker) Minute added in v0.73.0

func (f *Faker) Minute() int

func (*Faker) Month added in v0.73.0

func (f *Faker) Month() int

func (*Faker) Name added in v0.73.0

func (f *Faker) Name() string

func (*Faker) NanoSecond added in v0.73.0

func (f *Faker) NanoSecond() int

func (*Faker) Numerify added in v0.73.0

func (f *Faker) Numerify(str string) string

func (*Faker) Password added in v0.73.0

func (f *Faker) Password(lower bool, upper bool, numeric bool, special bool, space bool, num int) string

func (*Faker) RandomInt added in v0.73.0

func (f *Faker) RandomInt(i []int) int

func (*Faker) RandomString added in v0.73.0

func (f *Faker) RandomString(a []string) string

func (*Faker) Second added in v0.73.0

func (f *Faker) Second() int

func (*Faker) URL added in v0.73.0

func (f *Faker) URL() string

func (*Faker) UUID added in v0.73.0

func (f *Faker) UUID() string

func (*Faker) UserAgent added in v0.73.0

func (f *Faker) UserAgent() string

func (*Faker) Username added in v0.73.0

func (f *Faker) Username() string

func (*Faker) Year added in v0.73.0

func (f *Faker) Year() int

type JSON added in v0.75.3

type JSON struct{}

func NewJSON added in v0.75.3

func NewJSON() *JSON

func (*JSON) Decode added in v0.75.3

func (j *JSON) Decode(in string) any

func (*JSON) Encode added in v0.75.3

func (j *JSON) Encode(in any) any

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL