Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Service = NewInjects()
Functions ¶
func Extract ¶
Extract the quoted value for the given name returning it if it is found. The found boolean helps differentiate between the "empty and found" vs "empty and not found" nature of default empty strings.
func NewInjects ¶
func NewInjects() *global
Types ¶
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
The Graph of Objects.
type Logger ¶
type Logger interface {
Debugf(format string, v ...interface{})
}
Logger allows for simple logging as inject traverses and populates the object graph.
type Object ¶
type Object struct { Value interface{} Name string // Optional Complete bool // If true, the Value will be considered complete Fields map[string]*Object // Populated with the field names that were injected and their corresponding *Object. Path string // contains filtered or unexported fields }
An Object in the Graph.
Click to show internal directories.
Click to hide internal directories.