deepprint

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package deepprint walks a Go value recursively, in a predictable order, without looping, and prints each value out to a given Writer, which is assumed to be a hash.Hash, as this package doesn't format things nicely.

This is intended as a lighter version of go-spew, etc. We don't need its features when our writer is just a hash.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(v ...interface{}) string

func Print

func Print(w io.Writer, v ...interface{})

func UpdateHash added in v1.0.0

func UpdateHash(last *string, v ...interface{}) (changed bool)

UpdateHash sets last to the hash of v and reports whether its value changed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳