node

package
v0.0.0-...-282f259 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT 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 {
	// contains filtered or unexported fields
}

Node type

func NewNode

func NewNode(name, parent, prefix string, mode NodeMode, info os.FileInfo) *Node

Constructor

func (*Node) Checksum

func (n *Node) Checksum() string

func (*Node) Decoration

func (n *Node) Decoration() string

func (*Node) FullPath

func (n *Node) FullPath() string

func (*Node) IsDir

func (n *Node) IsDir() bool

func (*Node) IsExecutable

func (n *Node) IsExecutable() bool

func (*Node) IsLast

func (n *Node) IsLast() bool

func (*Node) IsPipe

func (n *Node) IsPipe() bool

func (*Node) IsRegular

func (n *Node) IsRegular() bool

func (*Node) IsRoot

func (n *Node) IsRoot() bool

func (*Node) IsSocket

func (n *Node) IsSocket() bool
func (n *Node) IsSymlink() bool

func (*Node) Mark

func (n *Node) Mark() string

Getters

func (*Node) Name

func (n *Node) Name() string

func (*Node) Parent

func (n *Node) Parent() string

func (*Node) Prefix

func (n *Node) Prefix() string

func (*Node) String

func (n *Node) String() string

func (*Node) SymlinkTarget

func (n *Node) SymlinkTarget() string

type NodeMode

type NodeMode uint8

//////////////////////////////////////////////////////////////////////

const (
	// Flag, Mask
	RootNodeMode NodeMode = 1 << iota
	LastNodeMode
)

Jump to

Keyboard shortcuts

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