printf

package
v0.0.0-...-8cba18c Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 4 Imported by: 2

README

go-common/printf

This repository contains the go-common/printf library.

To install:

go get github.com/ugorji/go-common/printf

Package Documentation

Package printf provides utilities for formatted printing.

Exported Package API

func Debugf(format string, args ...interface{})
func ValuePrintf(v interface{}) string
type ValuePrintfer struct{ ... }

Documentation

Overview

Package printf provides utilities for formatted printing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, args ...interface{})

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

Jump to

Keyboard shortcuts

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