jsonhelpers

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: BSD-3-Clause, BSD-3-Clause Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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