pretty

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concise

func Concise(o interface{}) string

Types

type ChangeMonitor added in v0.16.0

type ChangeMonitor struct {
	// contains filtered or unexported fields
}

ChangeMonitor is used to reduce logging when discovering information that may change. The values recorded expire after 24 hours to prevent a value from being logged at startup only which could impede debugging if full sets of logs aren't available.

func NewChangeMonitor added in v0.16.0

func NewChangeMonitor() *ChangeMonitor

func (*ChangeMonitor) HasChanged added in v0.16.0

func (c *ChangeMonitor) HasChanged(key string, value any) bool

HasChanged takes a key and value and returns true if the hash of the value has changed since the last tine the change monitor was called.

Jump to

Keyboard shortcuts

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