modeljuice

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package modeljuice provides a registry for creating instances of structs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FactoryRegistryInterface added in v1.5.4

type FactoryRegistryInterface interface {
	RegisterStruct(objectName string, newInstanceFunc func() interface{})
	Instanciate(objectName string) (interface{}, error)
}

FactoryRegistry is a registry for creating instances of different structs.

func NewFactoryRegistry

func NewFactoryRegistry() FactoryRegistryInterface

NewFactoryRegistry creates a new factory registry and returns it as a FactoryRegistryInterface.

Jump to

Keyboard shortcuts

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