tequila

package
v1.9.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2022 License: MPL-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

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

func PathSegmenter

func PathSegmenter(path string, start int) (segment string, next int)

Types

type Fan

type Fan struct {
	Name   string
	FanIn  int
	FanOut int
}

type FullGraph

type FullGraph struct {
	NodeList     map[string]string
	RelationList map[string]*Relation
	// contains filtered or unexported fields
}

func (*FullGraph) BuildMapTree

func (fullGraph *FullGraph) BuildMapTree(include func(key string) bool) *PathTrie

func (*FullGraph) MapToGraph

func (fullGraph *FullGraph) MapToGraph(trie *PathTrie) *gographviz.Graph

func (*FullGraph) MergeHeaderFile

func (fullGraph *FullGraph) MergeHeaderFile(merge func(string) string) *FullGraph

func (*FullGraph) SortedByFan

func (fullGraph *FullGraph) SortedByFan(merge func(string) string) []*Fan

func (*FullGraph) ToDot

func (fullGraph *FullGraph) ToDot(split string, include func(string) bool) *gographviz.Graph

func (*FullGraph) ToMapDot

func (fullGraph *FullGraph) ToMapDot(include func(string) bool) *gographviz.Graph

type PathTrie

type PathTrie struct {
	Value    string
	Children map[string]*PathTrie
	// contains filtered or unexported fields
}

func NewPathTrie

func NewPathTrie() *PathTrie

func (*PathTrie) Put

func (trie *PathTrie) Put(key string)

type Relation

type Relation struct {
	From  string
	To    string
	Style string
}

type StringSegmenter

type StringSegmenter func(key string, start int) (segment string, nextIndex int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL