Created
April 9, 2020 09:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func sanitize(args ...interface{}) []interface{} { | |
res := make([]interface{}, 0, len(args)) | |
for _, v := range args { | |
switch a := v.(type) { | |
case protoreflect.ProtoMessage: | |
res = append(res, sanitizeProtoMessage(a)) | |
default: | |
res = append(res, a) | |
} | |
} | |
return res | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Responded and the help is much appreciated!