builtin

package
v0.121.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(x, y any, ignores ...any) (bool, error)

func Diff

func Diff(x, y any, ignores ...any) (string, error)

func Intersect added in v0.58.3

func Intersect(x, y any) any

func Merge added in v0.92.0

func Merge(x ...any) (any, error)

func Omit added in v0.92.0

func Omit(x any, keys ...string) (any, error)

func Pick added in v0.92.0

func Pick(x any, keys ...string) (any, error)

func Time

func Time(v any) (time.Time, error)

func Url added in v0.76.0

func Url(rawURL string) (*url.URL, error)

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) ULID added in v0.99.1

func (f *Faker) ULID() (string, error)

ULID returns ULID.

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) UUIDv4 added in v0.99.1

func (f *Faker) UUIDv4() string

UUIDv4 returns UUID v4.

func (*Faker) UUIDv6 added in v0.99.1

func (f *Faker) UUIDv6() string

UUIDv6 returns UUID v6.

func (*Faker) UUIDv7 added in v0.99.1

func (f *Faker) UUIDv7() string

UUIDv7 returns UUID v7.

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

Jump to

Keyboard shortcuts

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