describe

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 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 Line

type Line struct {
	Indent   []byte
	Key      []byte
	Spacing  []byte
	Value    []byte
	Trailing []byte
}

func (Line) GoString

func (line Line) GoString() string

func (Line) IsZero added in v0.3.0

func (line Line) IsZero() bool

func (Line) KeyIndent

func (line Line) KeyIndent() int

func (Line) String

func (line Line) String() string

func (Line) ValueIndent

func (line Line) ValueIndent() int

type Path

type Path []PathSegment

func (Path) HasPrefix

func (p Path) HasPrefix(segments ...string) bool

func (Path) String

func (p Path) String() string

type PathSegment

type PathSegment struct {
	Segment   string
	KeyIndent int
}

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(reader io.Reader) *Scanner

func (*Scanner) Err

func (s *Scanner) Err() error

func (*Scanner) Line

func (s *Scanner) Line() Line

func (*Scanner) Path

func (s *Scanner) Path() Path

func (*Scanner) Scan

func (s *Scanner) Scan() bool

Jump to

Keyboard shortcuts

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