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.
Click to show internal directories.
Click to hide internal directories.