MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / NumFields

Method NumFields

types/struct.go:42–42  ·  view source on GitHub ↗

NumFields returns the number of fields in the struct (including blank and embedded fields).

()

Source from the content-addressed store, hash-verified

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

Callers 15

identicalFunction · 0.80
hashForMethod · 0.80
TestAlignofNaclSliceFunction · 0.80
TestIssue25627Function · 0.80
nifyMethod · 0.80
needMethodsMethod · 0.80
assignMethod · 0.80
StringMethod · 0.80
StringMethod · 0.80
SizeofMethod · 0.80
offsetsofMethod · 0.80
compLitMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestAlignofNaclSliceFunction · 0.64
TestIssue25627Function · 0.64