binding

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrPath

type ErrPath string

func (ErrPath) Error

func (e ErrPath) Error() string

func (ErrPath) Is

func (e ErrPath) Is(err error) bool

type Part

type Part struct {
	Ident flect.Ident // chapter

	Name   flect.Ident // "Arrays and Slices"
	Key    string      // arrays-and-slices
	Number int         // 9
	Path   string      // path to the part
}

func PartFromPath

func PartFromPath(cab fs.FS, mp string) (Part, error)

func (Part) MarshalJSON

func (part Part) MarshalJSON() ([]byte, error)

type Parts

type Parts map[string]Part

func (Parts) UpdateIdent

func (parts Parts) UpdateIdent(ident flect.Ident)

type Whole

type Whole struct {
	Ident     flect.Ident // book
	PartIdent flect.Ident // chapter

	Name  flect.Ident // "My Big Book"
	Parts Parts       // chapters of the book
	Path  string      // path to the whole
}

func WholeFromPath

func WholeFromPath(cab fs.FS, root string, wholeName string, partName string) (*Whole, error)

func (Whole) String

func (w Whole) String() string

func (*Whole) UpdatePartIdent

func (w *Whole) UpdatePartIdent(ident flect.Ident)

Jump to

Keyboard shortcuts

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