statutils

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atime

func Atime(info os.FileInfo) time.Time

Atime returns the last access time in time.Time.

func AtimeSec

func AtimeSec(info os.FileInfo) int64

AtimeSec returns the last access time in seconds.

func Ctime

func Ctime(info os.FileInfo) time.Time

Ctime returns the create time in time.Time.

func CtimeSec

func CtimeSec(info os.FileInfo) int64

CtimeSec returns the create time in seconds.

func FreeSpace

func FreeSpace(diskPath string) (unit.Bytes, error)

func GetSysStat

func GetSysStat(info os.FileInfo) *syscall.Stat_t

GetSysStat returns underlying data source of the os.FileInfo.

Types

This section is empty.

Jump to

Keyboard shortcuts

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