Help us shape the future of Go! Take the 2026 Go Developer Survey

injector

package
v0.0.0-...-3953a0d Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Instance

func Instance() interfaces.IInjector

The injector can only be created once.

Types

type Injector

type Injector struct {
	// contains filtered or unexported fields
}

func (*Injector) AddSingleton

func (ij *Injector) AddSingleton(objects ...interface{})

func (*Injector) AddTransient

func (ij *Injector) AddTransient(objects ...interface{})

func (*Injector) Inject

func (ij *Injector) Inject(value reflect.Value)

Jump to

Keyboard shortcuts

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