Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fmt ¶
Fmt is an internal func that's currently exposed to get around some import dependencies. It runs the marshal func for all values provided to it, which will stringify the values according to the clues marshaler and concealer rules.
func Marshal ¶
Marshal is the central marshalling handler for the entire package. All stringification of values comes down to this function. Priority for stringification follows this order: 1. nil -> "" 2. conceal all concealer interfaces 3. flat string values 4. string all stringer interfaces 5. fmt.sprintf the rest
Types ¶
type Concealer ¶
type Concealer interface { // Conceal produces an obfuscated representation of the value. Conceal() string // Concealers also need to comply with Format. // Complying with Conceal() alone doesn't guarantee that // the variable won't pass into fmt.Printf("%v") and skip // the whole conceal process. Format(fs fmt.State, verb rune) // PlainStringer is the opposite of conceal. // Useful for if you want to retrieve the raw value of a secret. PlainString() string }
duplicated here from secrets to avoid import cycles. Since this is an internal package, we don't let end users see it.