Skip to content

Instantly share code, notes, and snippets.

@vadzappa
Created April 9, 2020 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vadzappa/af32632675449c68be9c50ed4b497a6c to your computer and use it in GitHub Desktop.
Save vadzappa/af32632675449c68be9c50ed4b497a6c to your computer and use it in GitHub Desktop.
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
}
@bpike0612
Copy link

Responded and the help is much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment