tendo

package
v0.0.0-...-d9eb2f4 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel uint8

LogLevel determines how much to output when logging

const (
	LogAll LogLevel = iota
	LogTrace
	LogInfo
	LogWarnings
	LogErrors
)

The various levels of logging

type Tendo

type Tendo struct {
	// contains filtered or unexported fields
}

Tendo is the struct which manages all of the packages in the specified Go project

func NewTendo

func NewTendo(logLevel LogLevel) *Tendo

NewTendo creates a new instance of Tendo and returns a reference to it

func (*Tendo) Clear

func (tendo *Tendo) Clear()

Clear clears out all of the data

func (*Tendo) DisplayTotals

func (tendo *Tendo) DisplayTotals()

DisplayTotals calls GetTotals() and then displays the results to the console

func (*Tendo) GetTotals

func (tendo *Tendo) GetTotals() (int, int, int, int)

GetTotals returns the total number of packages, structs and methods

func (*Tendo) Inspect

func (tendo *Tendo) Inspect(path string)

Inspect walks through all of the Go files specified in the path and counts the packages, structs and methods

type VisitorFunc

type VisitorFunc func(n ast.Node) ast.Visitor

VisitorFunc is used to define the function used when walking trhough a Go source file

func (VisitorFunc) Visit

func (visitor VisitorFunc) Visit(node ast.Node) ast.Visitor

Visit is used when walking through a Go source file

Jump to

Keyboard shortcuts

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