39
// MaskStruct replace password values with mask and returns copy of the strct.
40
// Original strct value is not modified. Doesn't go recursively through strct properties.
42
>
strctV := reflect.ValueOf(strct)
43
>
44
>
if strct == nil || (strctV.Kind() == reflect.Pointer && strctV.IsNil()) {
46
>
}
47
48
for t := reflect.TypeOf(strct); t.Kind() == reflect.Pointer; t = t.Elem() {