factory

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	Create() (interface{}, error)
	Patch(v interface{}) (interface{}, error)
	MustCreate(t testing.TB) interface{}
	MustPatch(t testing.TB, v interface{}) interface{}
}

Factory defines methods to create and patch arbitrary structs.

func New

func New(config *config.Config, fn func() (interface{}, error)) Factory

New returns a new Factory.

Jump to

Keyboard shortcuts

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