Documentation
¶
Index ¶
Constants ¶
View Source
const (
// InjectMethodPrefix can inject objects, as long as the method of this object contains a prefix of `InjectMethodPrefix`
InjectMethodPrefix = "DixInject"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dix ¶
type Dix struct {
// contains filtered or unexported fields
}
func (*Dix) GraphWithOptions ¶
func (dix *Dix) GraphWithOptions(opts *GraphOptions) *Graph
GraphWithOptions generates dependency graphs with custom options
type DotRenderer ¶
type DotRenderer struct {
// contains filtered or unexported fields
}
DotRenderer implements DOT format graph rendering
func NewDotRenderer ¶
func NewDotRenderer() *DotRenderer
func (*DotRenderer) BeginSubgraph ¶
func (d *DotRenderer) BeginSubgraph(name, label string)
func (*DotRenderer) EndSubgraph ¶
func (d *DotRenderer) EndSubgraph()
func (*DotRenderer) RenderEdge ¶
func (d *DotRenderer) RenderEdge(from, to string, attrs map[string]string)
func (*DotRenderer) RenderNode ¶
func (d *DotRenderer) RenderNode(name string, attrs map[string]string)
func (*DotRenderer) String ¶
func (d *DotRenderer) String() string
type GraphOptions ¶
type GraphOptions struct {
// MaxDepth limits the depth of dependencies to show (0 = unlimited)
MaxDepth int
// GroupByPackage enables grouping nodes by package
GroupByPackage bool
// ShowStructFields controls whether to show struct field dependencies
ShowStructFields bool
// FilterPackages allows filtering by specific packages
FilterPackages []string
}
GraphOptions holds configuration options for graph rendering
func NewGraphOptions ¶
func NewGraphOptions() *GraphOptions
NewGraphOptions creates GraphOptions with sensible defaults
Click to show internal directories.
Click to hide internal directories.