location

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldItem

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

func (FieldItem) Parent

func (l FieldItem) Parent() Item

func (FieldItem) String

func (l FieldItem) String(first bool) string

type IndexItem

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

func (IndexItem) Parent

func (l IndexItem) Parent() Item

func (IndexItem) String

func (l IndexItem) String(first bool) string

type Item

type Item interface {
	String(first bool) string
	Parent() Item
}

type Location

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

func CreateLocation

func CreateLocation() *Location

func (*Location) EndArray

func (l *Location) EndArray()

func (*Location) EndObject

func (l *Location) EndObject()

func (*Location) Reset

func (l *Location) Reset()

func (*Location) SetField

func (l *Location) SetField(name string)

func (*Location) SetIndex

func (l *Location) SetIndex(idx int)

func (*Location) StartArray

func (l *Location) StartArray()

func (*Location) StartObject

func (l *Location) StartObject()

func (*Location) String

func (l *Location) String() string

type Type

type Type int
const (
	InvalidType Type = iota
	FieldType
	IndexType
)

Jump to

Keyboard shortcuts

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