MCPcopy Create free account
hub / github.com/pquerna/ffjson / ReverseFields

Method ReverseFields

inception/reflect.go:77–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77func (si *StructInfo) ReverseFields() []*StructField {
78 var i int
79 rv := make([]*StructField, 0)
80 for i = len(si.Fields) - 1; i >= 0; i-- {
81 rv = append(rv, si.Fields[i])
82 }
83 return rv
84}
85
86const (
87 caseMask = ^byte(0x20) // Mask to ignore case in ASCII.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected