reflect.structField.offset (method)
10 uses
reflect (current package)
type.go#L428: func (f *structField) offset() uintptr {
type.go#L1200: f.Offset = p.offset()
type.go#L2716: if ft.offset() > off {
type.go#L2717: n := (ft.offset() - off) / ptrSize
type.go#L2723: off = ft.offset()
type.go#L2745: pi := add(p, ft.offset(), "&x.field safe")
type.go#L2746: qi := add(q, ft.offset(), "&x.field safe")
type.go#L2817: return f.offset() + f.typ.ptrdata
type.go#L3129: addTypeBits(bv, offset+f.offset(), f.typ)
value.go#L874: ptr := add(v.ptr, field.offset(), "same as non-reflect &v.field")
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |