datatypes

package
v0.0.0-...-b1bbf48 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 1 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[T any] interface {
	New() (T, error)
	NewPtr() (*T, error)
}

func NewConstructorFactory

func NewConstructorFactory[T any](constructor func() T) Factory[T]

func NewInjectionFactory

func NewInjectionFactory[T any](injector remy.DependencyRetriever, useKey string) Factory[T]

type GenericFactory

type GenericFactory[T any] struct {
	// contains filtered or unexported fields
}

func (GenericFactory[T]) New

func (fac GenericFactory[T]) New() (T, error)

func (GenericFactory[T]) NewPtr

func (fac GenericFactory[T]) NewPtr() (*T, error)

Jump to

Keyboard shortcuts

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