debug

package
v0.0.0-...-e2d6795 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeferredJSON

type DeferredJSON struct {
	O interface{}
}

DeferredJSON is a helper that delays JSON formatting until/unless it is needed.

func JSON

func JSON(o interface{}) DeferredJSON

JSON is a helper that prints the object in JSON format. We use lazy-evaluation to avoid calling json.Marshal unless it is actually needed.

func (DeferredJSON) String

func (d DeferredJSON) String() string

String is the method that is called to format the object.

Jump to

Keyboard shortcuts

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