Merge pull request #54 from unistack-org/isExported

fixup for unexported fields
This commit is contained in:
Василий Толстов 2022-03-02 17:51:49 +03:00 committed by GitHub
commit 6dfc8b8a01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,6 +92,9 @@ func newPathRequest(path string, method string, body string, msg interface{}, ta
continue continue
} }
fld := tmsg.Type().Field(i) fld := tmsg.Type().Field(i)
if !fld.IsExported() {
continue
}
t := &tag{} t := &tag{}
for _, tn := range tags { for _, tn := range tags {