output

package
v0.0.0-...-c0e470d Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatOutput

type StatOutput struct {
	Stats gocyclo.Stats
	// contains filtered or unexported fields
}

func NewStatOutput

func NewStatOutput(stats gocyclo.Stats, formatFlag string, fileLocation *string, sortOutput *bool, printTop *int) *StatOutput

NewOutput creates a new Output object. DEFAULT: If sortOutput is nil, it will be set to true. DEFAULT: If printTop is nil, it will be set to 1000.

func (*StatOutput) PrintAverageJSON

func (o *StatOutput) PrintAverageJSON()

PrintAverageJSON prints the average complexity of the given stats in JSON format.

func (*StatOutput) PrintStats

func (o *StatOutput) PrintStats() error

PrintStats prints the given stats in the given format. by default it prints in JSON format.

Jump to

Keyboard shortcuts

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