fakers

package
v0.0.0-...-d389d3b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityFaker

type EntityFaker[T common.EntityConstraint] interface {
	Any() T
	Create() T
}

type UserFaker

type UserFaker struct {
	common.Entity
	ID        uint
	Name      string
	Email     string
	Age       uint8
	Birthday  time.Time
	CreatedAt time.Time
	UpdatedAt time.Time
	// contains filtered or unexported fields
}

func NewUserFaker

func NewUserFaker(faker *gofakeit.Faker) *UserFaker

func User

func User() *UserFaker

func UserWithFaker

func UserWithFaker(faker *gofakeit.Faker) *UserFaker

func (UserFaker) Any

func (u UserFaker) Any() entities.User

func (UserFaker) Create

func (u UserFaker) Create() entities.User

Jump to

Keyboard shortcuts

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