fullpath

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidName = errors.New("fullpath: invalid join tag value")
	ErrNotPointer  = errors.New("fullpath: value 'in' must be a pointer to struct")
)

Functions

func Edges

func Edges(in any) [][2]int

func Join

func Join(in any) error

func MustNew

func MustNew[T any](in T) (t *T)

func New

func New[T any](in T) (*T, error)

Types

type Node

type Node struct {
	Target *Node
	// contains filtered or unexported fields
}

func (*Node) Depth

func (n *Node) Depth() int

Jump to

Keyboard shortcuts

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