json

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 2 Imported by: 2 modules, 1 package

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 ResolveDeferred added in v0.0.4

func ResolveDeferred(v any) (any, error)

ResolveDeferred resolves a concrete value from a number of different input types, such as pointers, functions, and maps and slices potentially containing more deferred values.

Types

type Array

type Array []any

Array is a type alias for []any.

type DeferredValueError added in v0.0.4

type DeferredValueError struct {
	Label string
	Err   error
}

A DeferredValueError is an error type that is returned when a deferred value cannot be resolved.

func (DeferredValueError) Error added in v0.0.4

func (dve DeferredValueError) Error() string

func (DeferredValueError) WithPrefix added in v0.0.4

func (dve DeferredValueError) WithPrefix(prefix string) DeferredValueError

WithPrefix prefixes the error's label with an additional string.

type Object

type Object map[string]any

Object is a type alias for map[string]any.

Jump to

Keyboard shortcuts

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