tree

package module
v0.0.0-...-5ad3439 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 5 Imported by: 0

README

deptree

use deptree command to see dependency tree on the terminal or write into a file Go Version Go Reference License Report Card

Installation

go install go.mrchanchal.com/deptree/cmd/deptree@latest

Documentation

Index

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)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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