jsonpointer

package module
v0.0.0-...-375c62b Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: ISC Imports: 6 Imported by: 1

README

go-json-pointer

Go-json-pointer is now available as part of go-ejson.

Introduction

The go-json-pointer library contains an implementation of RFC 6901 providing utilities to manipulate JSON pointers.

Usage

Refer to the Go package documentation for information about the API.

See the json-pointer program for a practical use case.

Licensing

Go-json-pointer is open source software distributed under the ISC license.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidPointerFormat = errors.New("invalid format")

Functions

This section is empty.

Types

type Pointer

type Pointer []string

func NewPointer

func NewPointer(tokens ...interface{}) Pointer

func (*Pointer) Append

func (p *Pointer) Append(tokens ...string)

func (Pointer) Child

func (p Pointer) Child(tokens ...interface{}) Pointer

func (Pointer) Find

func (p Pointer) Find(value interface{}) interface{}

func (Pointer) MarshalJSON

func (p Pointer) MarshalJSON() ([]byte, error)

func (*Pointer) MustParse

func (p *Pointer) MustParse(s string)

func (Pointer) Parent

func (p Pointer) Parent() Pointer

func (*Pointer) Parse

func (p *Pointer) Parse(s string) error

func (*Pointer) Prepend

func (p *Pointer) Prepend(tokens ...string)

func (Pointer) String

func (p Pointer) String() string

func (*Pointer) UnmarshalJSON

func (p *Pointer) UnmarshalJSON(data []byte) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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