utils

package
v0.20251120.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SensitiveString

type SensitiveString string

SensitiveString is a custom type for sensitive information, like passwords or tokens. It reduces the risk of leaking sensitive information in logs.

func (SensitiveString) LogValue

func (s SensitiveString) LogValue() slog.Value

func (SensitiveString) MarshalJSON

func (s SensitiveString) MarshalJSON() ([]byte, error)

func (SensitiveString) MarshalYAML

func (s SensitiveString) MarshalYAML() (interface{}, error)

func (SensitiveString) String

func (s SensitiveString) String() string

String implements the fmt.Stringer interface.

func (SensitiveString) UnsafeValue

func (s SensitiveString) UnsafeValue() string

Jump to

Keyboard shortcuts

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