file

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ShowConvertedSize bool
View Source
var ShowFilesCount bool
View Source
var ShowFilesPercentage bool
View Source
var ShowSizePercentage bool
View Source
var ShowType bool

Functions

This section is empty.

Types

type BySize

type BySize struct{ Files }

Type used to sort the files by their size

func (BySize) Less

func (s BySize) Less(i, j int) bool

type File

type File struct {
	Path     string
	Size     int64
	IsDir    bool
	Subfiles []File
	Parent   *File
}

func ScanFiles

func ScanFiles(files []string) (scanedFiles []File)

func (File) ConvertedSize

func (f File) ConvertedSize() string

func (File) Files

func (f File) Files() (filesCount int)

func (File) FilesCount

func (f File) FilesCount() string

func (File) FilesPercentage

func (f File) FilesPercentage() string

func (File) SizePercentage

func (f File) SizePercentage() string

func (File) String

func (f File) String() string

func (File) Type

func (f File) Type() string

type Files

type Files []File

Type used to sort collection of files

func (Files) Len

func (s Files) Len() int

func (Files) Swap

func (s Files) Swap(i, j int)

Jump to

Keyboard shortcuts

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