NumFields returns the number of fields in the struct (including blank and embedded fields).
()
| 40 | |
| 41 | // NumFields returns the number of fields in the struct (including blank and embedded fields). |
| 42 | func (s *Struct) NumFields() int { return len(s.fields) } |
| 43 | |
| 44 | // Field returns the i'th field for 0 <= i < NumFields(). |
| 45 | func (s *Struct) Field(i int) *Var { return s.fields[i] } |
no outgoing calls