Documentation ¶
Overview ¶
Package dump contains some helper functions for printing and formatting values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Value ¶
func Value(v interface{}) string
Value produces a formatted string representation of the given value.
The result is a pretty-printed version of the result of the fmt.GoStringer implementation for the given value. The pretty-printing expects the GoString result to be a valid Go expression; if it is not then the result may be sub-optimal but this function will still make a best effort.
This function is intended primarily as a helper for writing unit tests, and so it is not optimized for performance in any way.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.