From d280ea260edb6f16597199413c64ddcbe5801a87 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 2 Mar 2022 17:51:29 +0300 Subject: [PATCH] fixup for unexported fields Signed-off-by: Vasiliy Tolstov --- util.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util.go b/util.go index 4785318..cad08cb 100644 --- a/util.go +++ b/util.go @@ -92,6 +92,9 @@ func newPathRequest(path string, method string, body string, msg interface{}, ta continue } fld := tmsg.Type().Field(i) + if !fld.IsExported() { + continue + } t := &tag{} for _, tn := range tags {