values

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

type Value struct {
	UnderlyingValue string
	ShouldMask      bool
}

func (*Value) String

func (v *Value) String() string

Returns a string representation of the value that is safe to log. Secret values will be truncated to 72 bytes and hashed with bcrypt, if possible. To help with debugging, users can check if a known value matches this hash with something like: go install github.com/shoenig/bcrypt-tool@latest bcrypt-tool match "expected value" '$2a$10$KnownValueHash...'

Jump to

Keyboard shortcuts

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