entry

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileHidden added in v1.16.3

func FileHidden(file string) (bool, error)

func HighlightSyntax

func HighlightSyntax(name string, preview string) (string, error)

Types

type Entry

type Entry struct {
	Name string
	Size string

	ModifyTime string
	AccessTime string
	ChangeTime string

	Type        string
	IsDir       bool
	SymlinkName string
	SymLinkPath string
}

func GetEntries

func GetEntries(path string, showHidden bool) ([]Entry, error)

func GetEntry

func GetEntry(info fs.FileInfo, path string) (Entry, error)

Jump to

Keyboard shortcuts

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