helpers

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugValue

func DebugValue(value any, fmtValue bool) any

DebugValue returns the debug value for the given raw Go value. If the value is a primitive, it is directly returned. If the value is itself a generated Config with a DebugMap function, the DebugMap is invoked. Otherwise, "(value)" is returned, unless fmtValue is specified, in which case it is returned as the result of fmt.Sprintf.

func Flatten

func Flatten(debugMap map[string]any) map[string]any

func SensitiveDebugValue

func SensitiveDebugValue(value any) any

SensitiveDebugValue returns the string "nil" if the value is nil, "(empty)" if empty and otherwise returns "(sensitive)".

Types

This section is empty.

Jump to

Keyboard shortcuts

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