tequila

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: MPL-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyMergePackageFunc = func(input string) string {
	return input
}
View Source
var Level = 7
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

This section is empty.

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
}

func (*FullGraph) MergeHeaderFile

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

func (*FullGraph) SortedByFan

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

func (*FullGraph) ToDot

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

type Relation

type Relation struct {
	From  string
	To    string
	Style string
}

Jump to

Keyboard shortcuts

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