Debian Codegraph @

_test/unsafe10.go

raw symbols SCIP
1 package main
2
3 import "unsafe"
4
5 type T struct {
6 X uint64
7 Y uint64
8 }
9
10 func f(off uintptr) { println(off) }
11
12 func main() {
13 f(unsafe.Offsetof(T{}.Y))
14 }
15
16 // Output:
17 // 8