Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultFieldNames = []string{"Password", "KeyData"}
DefaultYAMLFieldNames = []string{"password", "keyData"}
)
Functions ¶
func MaskStruct ¶
func MaskStruct(strct interface{}, fieldNamesToMask []string) interface{}
MaskStruct replace password values with mask and returns copy of the strct. Original strct value is not modified. Doesn't go recursively through strct properties.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.