node

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Icon      rune
	IsDir     bool
	Name      string
	LinkCount int
	Mode      os.FileMode
	Size      int
	User      string
	Group     string
	Time      time.Time
	Symlink   string
}

Node - Contains all info necessary to render file or directory

func New

func New(dir string, file os.FileInfo) Node

New - Initializes Node with os.FileInfo

func Single added in v0.2.3

func Single(dir string, file os.FileInfo) Node

Single - Initializes Node with os.FileInfo

Jump to

Keyboard shortcuts

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