jsonhelpers

package
v5.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: BSD-3-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtSelectorPath

func AtSelectorPath(selectedObject *jsonw.Wrapper, selectors []keybase1.SelectorEntry,
	logger func(format string, arg ...interface{}), mkErr func(selector keybase1.SelectorEntry) error) ([]*jsonw.Wrapper, error)

Most failures here log instead of returning an error. If an error occurs, ([], nil) will be returned. This is because a selector may descend into many subtrees and fail in all but one.

func JSONGetChildren

func JSONGetChildren(w *jsonw.Wrapper) ([]*jsonw.Wrapper, error)

Return the elements of an array or values of a map.

func JSONStringSimple

func JSONStringSimple(object *jsonw.Wrapper) (string, error)

JSONStringSimple converts a simple json object into a string. Simple objects are those that are not arrays or objects. Non-simple objects result in an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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