Help us shape the future of Go! Take the 2026 Go Developer Survey

mother

package
v4.17.4 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generator added in v4.17.1

func Generator[T any](amount int, value func() T) []T

func New

func New[M ~struct{ *Mother }]() *M

Types

type Mother

type Mother struct {
	*gofakeit.Faker
}

func (*Mother) Email

func (m *Mother) Email() string

func (*Mother) ID

func (*Mother) ID() string

func (*Mother) Join added in v4.17.1

func (m *Mother) Join(values []string, separator string) string

func (*Mother) Letters added in v4.17.1

func (m *Mother) Letters(amount int) []string

func (*Mother) Message

func (m *Mother) Message() string

func (*Mother) StructRandomize

func (m *Mother) StructRandomize(value any)

func (*Mother) TimeNow

func (m *Mother) TimeNow() time.Time

func (*Mother) TimeRandomAfter

func (m *Mother) TimeRandomAfter(actual time.Time) time.Time

func (*Mother) TimeRandomBefore

func (m *Mother) TimeRandomBefore(actual time.Time) time.Time

func (*Mother) TimeSetAfter

func (m *Mother) TimeSetAfter(actual time.Time, min, max time.Duration) time.Time

func (*Mother) TimeSetBefore

func (m *Mother) TimeSetBefore(actual time.Time, min, max time.Duration) time.Time

func (*Mother) Words

func (m *Mother) Words(amount int) []string

Jump to

Keyboard shortcuts

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