package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 3, 2017
License: BSD-3-Clause
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package value provides functionality for reflect.Value types.
Format formats the value v as a string.
This is similar to fmt.Sprintf("%+v", v) except this:
- Prints the type unless it can be elided
- Avoids printing struct fields that are zero
- Prints a nil-slice as being nil, not empty
- Prints map entries in deterministic order
SortKeys sorts a list of map keys, deduplicating keys if necessary.
The type of each value must be comparable.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.