Merge pull request #54 from unistack-org/isExported
fixup for unexported fields
This commit is contained in:
commit
6dfc8b8a01
3
util.go
3
util.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user