Categorygithub.com/go-macaron/inject
modulepackage
0.0.0-20200308113650-138e5925c53b
Repository: https://github.com/go-macaron/inject.git
Documentation: pkg.go.dev

# README

inject Build Status

Package inject provides utilities for mapping and injecting dependencies in various ways.

This a modified version of codegangsta/inject for special purpose of Macaron

Please use the original version if you need dependency injection feature

License

This project is under the Apache License, Version 2.0. See the LICENSE file for the full license text.

# Functions

InterfaceOf dereferences a pointer to an Interface type.
IsFastInvoker check interface is FastInvoker.
New returns a new Injector.

# Interfaces

Applicator represents an interface for mapping dependencies to a struct.
FastInvoker represents an interface in order to avoid the calling function via reflection.
Injector represents an interface for mapping and injecting dependencies into structs and function arguments.
Invoker represents an interface for calling functions via reflection.
TypeMapper represents an interface for mapping interface{} values based on type.