record

package
v0.0.0-...-6fab397 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromJSONValue

func FromJSONValue(value interface{}) (interfaces.Record, error)

func FromString

func FromString(value string) (interfaces.Record, error)

func FromStringTuple

func FromStringTuple(values []string, names map[string]int) (interfaces.Record, error)

func IsNotAPrimitive

func IsNotAPrimitive(err error) bool

func StringTupleWithNames

func StringTupleWithNames(rec interfaces.Record, names map[string]int) (interfaces.Record, error)

Types

type Path

type Path []PathComponent

func MakePath

func MakePath(pc ...PathComponent) Path

func (Path) Append

func (p Path) Append(pc ...PathComponent) Path

func (Path) PathExpression

func (p Path) PathExpression() (string, error)

func (Path) Prepend

func (p Path) Prepend(pc ...PathComponent) Path

type PathComponent

type PathComponent struct {
	Index *int
	Field *string
}

func Field

func Field(name string) PathComponent

func Index

func Index(i int) PathComponent

func (PathComponent) MakeAccessor

func (c PathComponent) MakeAccessor() interfaces.Accessor

Jump to

Keyboard shortcuts

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