nodepath

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package nodepath defines the NodeProup struct

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodePath

type NodePath string

NodePath is the path of a nodegroup or node (note this non-distinction)

func (NodePath) Base

func (np NodePath) Base() string

Base given a path /path/to/filename.ext, returns filename

func (NodePath) HasChildren

func (np NodePath) HasChildren() (bool, error)

func (NodePath) Href

func (np NodePath) Href(inputDir string, prefixSlash bool) string

Href function returns the href, which is defined as follows: inputDir/a/b/c/file.md -> a/b/c/file

func (NodePath) IsNodegroup

func (np NodePath) IsNodegroup() (bool, error)

func (NodePath) String

func (np NodePath) String() string

Jump to

Keyboard shortcuts

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