utilities

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRoot added in v1.0.5

func IsRoot() bool

Types

type FileInfo

type FileInfo struct {
	Path           string
	Name           string
	Dir            bool
	NameWithoutExt string
	Ext            string
	Size           int64
	Date           time.Time
	Attr           string
}

func GetDir

func GetDir(path string) ([]FileInfo, error)

func (*FileInfo) SizeAsString

func (c *FileInfo) SizeAsString() string

type Statistics

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

func NewStatistics

func NewStatistics() *Statistics

func (*Statistics) Add

func (c *Statistics) Add(code string, value int)

func (*Statistics) Get

func (c *Statistics) Get(code string) int

func (*Statistics) Reset

func (c *Statistics) Reset()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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