mirror of
https://github.com/kataras/iris.git
synced 2026-01-07 20:17:05 +00:00
New: i18n pluralization and variables support and more...
fixes: #1649, #1648, #1641, #1650 relative to: #1597
This commit is contained in:
@@ -118,6 +118,8 @@ func structFieldIgnored(f reflect.StructField) bool {
|
||||
|
||||
// all except non-zero.
|
||||
func lookupFields(elem reflect.Value, skipUnexported bool, onlyZeros bool, parentIndex []int) (fields []reflect.StructField, stateless int) {
|
||||
// Note: embedded pointers are not supported.
|
||||
// elem = reflect.Indirect(elem)
|
||||
elemTyp := elem.Type()
|
||||
for i, n := 0, elem.NumField(); i < n; i++ {
|
||||
field := elemTyp.Field(i)
|
||||
|
||||
Reference in New Issue
Block a user