Nicky Semenza b2552cabdf fix upgrading transitive coreos dependency breakage | 3 vuotta sitten | |
---|---|---|
.. | ||
README.md | 6 vuotta sitten | |
reflect.go | 3 vuotta sitten |
The sqlx package has special reflect needs. In particular, it needs to:
These behaviors mimic the behaviors by the standard library marshallers and also the behavior of standard Go accessors.
The first two are amply taken care of by Reflect.Value.FieldByName
, and the third is
addressed by Reflect.Value.FieldByNameFunc
, but these don't quite understand struct
tags in the ways that are vital to most marshallers, and they are slow.
This reflectx package extends reflect to achieve these goals.