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: 1

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