Documentation ¶
Overview ¶
Package pass is a Fenced with string conversion functions, which are not recommended to be used. However the distinct type adds other safety benefits for the programmer and can be treated exactly the same as the Fenced otherwise.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Password ¶
type Password struct {
buf.Fenced
}
Password is just a Fenced but recommended for use in storing password fields in other structures to signify what kind of data it is.
func (*Password) FromString ¶
FromString loads the Lockedbuffer with the bytes of a string. The string is immutable so it is not removed from memory except automatically.
func (*Password) MarshalJSON ¶
MarshalJSON marshalls the JSON for a Password
Click to show internal directories.
Click to hide internal directories.