stats

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStat

type FileStat struct {
	Name  string    `json:"name"`
	IsDir bool      `json:"isDir,omitempty"`
	Kids  FileStats `json:"kids,omitempty"`
	Size  int64     `json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*FileStat) Count added in v0.3.0

func (f *FileStat) Count() int

func (*FileStat) Extensions

func (f *FileStat) Extensions() map[string]int

func (*FileStat) FullPath

func (f *FileStat) FullPath() string

func (*FileStat) Largest

func (f *FileStat) Largest() *FileStat

func (*FileStat) TotalSize

func (f *FileStat) TotalSize() int64

type FileStats

type FileStats []*FileStat

func GetFileStats

func GetFileStats(fs filesystem.FileLoader, pth string, logger util.Logger) (FileStats, error)

func (FileStats) Count added in v0.3.0

func (f FileStats) Count() int

func (FileStats) Extensions

func (f FileStats) Extensions() map[string]int

func (FileStats) Largest

func (f FileStats) Largest() *FileStat

func (FileStats) TotalSize

func (f FileStats) TotalSize() int64

Jump to

Keyboard shortcuts

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