Documentation ¶
Index ¶
- Variables
- func PathSegmenter(path string, start int) (segment string, next int)
- type Fan
- type FullGraph
- func (fullGraph *FullGraph) BuildMapTree(include func(key string) bool) *PathTrie
- func (fullGraph *FullGraph) MapToGraph(trie *PathTrie) *gographviz.Graph
- func (fullGraph *FullGraph) MergeHeaderFile(merge func(string) string) *FullGraph
- func (fullGraph *FullGraph) SortedByFan(merge func(string) string) []*Fan
- func (fullGraph *FullGraph) ToDot(split string, include func(string) bool) *gographviz.Graph
- func (fullGraph *FullGraph) ToMapDot(include func(string) bool) *gographviz.Graph
- type PathTrie
- type Relation
- type StringSegmenter
Constants ¶
This section is empty.
Variables ¶
View Source
var Level = 7
View Source
var MergeHeaderFunc = func(input string) string { tmp := strings.Split(input, ".") if len(tmp) > 1 { return strings.Join(tmp[0:len(tmp)-1], ".") } return input }
View Source
var MergePackageFunc = func(input string) string { split := "/" if !strings.Contains(input, split) { split = "." } if !strings.Contains(input, split) { split = "::" } tmp := strings.Split(input, split) packageName := tmp[0] if packageName == input { packageName = "main" } if len(tmp) > Level { packageName = strings.Join(tmp[:(Level)], split) } return packageName }
Functions ¶
Types ¶
type FullGraph ¶
type FullGraph struct { NodeList map[string]string RelationList map[string]*Relation // contains filtered or unexported fields }
func (*FullGraph) BuildMapTree ¶
func (*FullGraph) MapToGraph ¶
func (fullGraph *FullGraph) MapToGraph(trie *PathTrie) *gographviz.Graph
func (*FullGraph) MergeHeaderFile ¶
func (*FullGraph) SortedByFan ¶
Click to show internal directories.
Click to hide internal directories.