README ¶ deptree use deptree command to see dependency tree on the terminal or write into a file Installation go install go.mrchanchal.com/deptree/cmd/deptree@latest Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Package func (p *Package) String() string type Tree func ImportTree(path, srcDir string) (*Tree, error) func (t *Tree) Children() []treewriter.Tree func (t *Tree) GetPackage() *Package func (t *Tree) String() string func (t *Tree) WriteTo(writer io.Writer) (int64, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Package ¶ type Package struct { Name string Doc string } func (*Package) String ¶ func (p *Package) String() string type Tree ¶ type Tree struct { Name string Doc string Childs []*Tree PackageList []*Package } func ImportTree ¶ func ImportTree(path, srcDir string) (*Tree, error) func (*Tree) Children ¶ func (t *Tree) Children() []treewriter.Tree func (*Tree) GetPackage ¶ func (t *Tree) GetPackage() *Package func (*Tree) String ¶ func (t *Tree) String() string func (*Tree) WriteTo ¶ func (t *Tree) WriteTo(writer io.Writer) (int64, error) Source Files ¶ View all Source files tree.go Directories ¶ Show internal Expand all Path Synopsis cmd deptree Click to show internal directories. Click to hide internal directories.