Documentation ¶
Overview ¶
Package printf provides utilities for formatted printing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValuePrintf ¶
func ValuePrintf(v interface{}) string
fmt.Sprintf "%#v" or "%v" doesn't give information on contents of pointers (just shows pointer value). This allows us show a map, array, slice or struct containing pointers, while seeing their true value.
Types ¶
type ValuePrintfer ¶
type ValuePrintfer struct {
V interface{}
}
func (ValuePrintfer) String ¶
func (v ValuePrintfer) String() string
Click to show internal directories.
Click to hide internal directories.