Help us shape the future of Go! Take the 2026 Go Developer Survey

filenode

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IDByPath

func IDByPath(p file.Path) node.ID

Types

type FileNode

type FileNode struct {
	RealPath  file.Path // all constituent paths cannot have links (the base may be a link however)
	FileType  file.Type
	LinkPath  file.Path // a relative or absolute path to another file
	Reference *file.Reference
}

func NewDir

func NewDir(p file.Path, ref *file.Reference) *FileNode

func NewFile

func NewFile(p file.Path, ref *file.Reference) *FileNode
func NewHardLink(p, linkPath file.Path, ref *file.Reference) *FileNode
func NewSymLink(p, linkPath file.Path, ref *file.Reference) *FileNode

func (*FileNode) Copy

func (n *FileNode) Copy() node.Node

func (*FileNode) ID

func (n *FileNode) ID() node.ID
func (n *FileNode) IsLink() bool

func (*FileNode) RenderLinkDestination

func (n *FileNode) RenderLinkDestination() file.Path

Jump to

Keyboard shortcuts

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