module

package
v0.3.37 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(path string, fs afero.Fs, w io.Writer, modules ...Module)

Execute runs modules over path specified

Types

type Context

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

Context defines modules context

func NewContext

func NewContext(top int) *Context

NewContext creates new module's context that needed to create new modules

type Module

type Module interface {
	// contains filtered or unexported methods
}

Module defines working modules interface

func NewExtensionHiddenModule

func NewExtensionHiddenModule(ctx *Context) Module

NewExtensionHiddenModule creates new file extensions statistic module that has disabled output

func NewExtensionModule

func NewExtensionModule(ctx *Context) Module

NewExtensionModule creates new file extensions statistic module

func NewFoldersHiddenModule

func NewFoldersHiddenModule(ctx *Context) Module

NewFoldersHiddenModule creates new folders module that has disabled output

func NewFoldersModule

func NewFoldersModule(ctx *Context) Module

NewFoldersModule creates new folders module

func NewRangeModule

func NewRangeModule(ctx *Context, verbose bool, enabledRanges []int) Module

NewRangeModule creates new file statistic by file size range module

func NewTopFilesModule

func NewTopFilesModule(ctx *Context) Module

NewTopFilesModule creates new top files statistic module

func NewTotalFileModule

func NewTotalFileModule(ctx *Context) Module

NewTotalFileModule creates new total file statistic module

func NewTotalModule

func NewTotalModule(ctx *Context) Module

NewTotalModule creates new total statistic module

type Range

type Range struct {
	// Min value
	Min int64

	// Max value
	Max int64
}

Range defined integer value range

func (*Range) Contains

func (r *Range) Contains(num int64) bool

Contains defines whether the number specified within range

Directories

Path Synopsis
internal
sys

Jump to

Keyboard shortcuts

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