node

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: GPL-3.0 Imports: 5 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 {
	BaseName string `json:"basename"`
	AbsPath  string `json:"abspath"`
	Checksum string `json:"checksum"`
	Size     uint64 `json:"size"`
	Mode     string `json:"mode"`
	ModTime  int64  `json:"modification"`
}

Node a file

func NewNode

func NewNode(path string, size uint64, mode string, modTime time.Time) (*Node, error)

NewNode create a new entry node

func SortNodesByBaseName

func SortNodesByBaseName(nodes []*Node) []*Node

SortNodesByBaseName sort nodes by basename

func SortNodesByFullName

func SortNodesByFullName(nodes []*Node) []*Node

SortNodesByFullName sort nodes by fullname

func SortNodesByModTime

func SortNodesByModTime(nodes []*Node) []*Node

SortNodesByModTime sort nodes by modification time

Jump to

Keyboard shortcuts

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