Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Secret ¶
type Secret[T any] struct { // contains filtered or unexported fields }
Secret contains a value that can be unmarshaled but should never be printed
func Make ¶
Make is the standard way that secrets must be created to be properly initialized and sealed.
func (Secret[T]) MarshalJSON ¶
MarshalJSON returns a marshaled form of the underlying secret. For example, a string secret will return an empty string and a numeric secret will return a zero value.
func (*Secret[T]) UnmarshalJSON ¶
UnmarshalJSON decodes the input into the underlying secret's value
Click to show internal directories.
Click to hide internal directories.