Documentation
¶
Overview ¶
Package secret makes accidental formatting/serialization of credentials safe. It does not promise memory erasure or protect values explicitly revealed by application code for use with an external client.
Index ¶
- Constants
- type String
- func (s String) GoString() string
- func (s String) IsZero() bool
- func (s String) LogValue() slog.Value
- func (s String) MarshalJSON() ([]byte, error)
- func (s String) MarshalText() ([]byte, error)
- func (s String) Reveal() string
- func (s String) String() string
- func (s *String) UnmarshalText(data []byte) error
Constants ¶
View Source
const Redacted = "[REDACTED]"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type String ¶
type String struct {
// contains filtered or unexported fields
}
String holds a sensitive string. Only Reveal returns the original value.
func (String) MarshalJSON ¶
func (String) MarshalText ¶
func (*String) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.