Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Graph ¶
type Graph struct {
Logger Logger // Optional, will trigger debug logging.
// contains filtered or unexported fields
}
The Graph of Objects.
func (*Graph) GetObjectByName ¶
GetObjectByName 根据name获取对象
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.
// contains filtered or unexported fields
}
An Object in the Graph.
Click to show internal directories.
Click to hide internal directories.