Documentation ¶
Overview ¶
Package secret provides a custom string type that hides sensitive data from output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type String ¶
type String string
String represents a string holding sensitive data.
func (String) MarshalJSON ¶
MarshalJSON ensures the sensitive string is redacted in JSON.
func (String) SecretValue ¶
SecretValue returns the secret value.
func (String) String ¶
String implements the fmt.Stringer interface to prevent sensitive data from being printed.
func (*String) UnmarshalJSON ¶
UnmarshalJSON unmarshals a secret value from JSON.
Click to show internal directories.
Click to hide internal directories.