dump

package
v0.0.0-...-042adf3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: MPL-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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