factory

package
v0.0.0-20260608 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseFactory

type BaseFactory struct {
}

BaseFactory provides utilities for factories.

func NewBaseFactory

func NewBaseFactory() *BaseFactory

NewBaseFactory initializes a new BaseFactory.

type Factory

type Factory[T any] interface {
	Definition() *T
	Create(count int) ([]*T, error)
}

Factory is an interface for model factories.

Jump to

Keyboard shortcuts

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