stat

package
v2.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo interface {
	// Name returns the file name.
	Name() string
	// Size returns the file size.
	Size() int64
	// Mode returns the file mode.
	Mode() os.FileMode
	// IsDir reports whether the file is a directory.
	IsDir() bool
	// IsFile reports whether the file is a regular file.
	IsFile() bool
	// Sys returns the underlying system data.
	Sys() any
	// CreateTime returns the file creation time.
	CreateTime() time.Time
	// ModifyTime returns the file modification time.
	ModifyTime() time.Time
}

func Stat

func Stat(filePath string) (FileInfo, error)

Jump to

Keyboard shortcuts

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