☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
unsafe10.go
☽
☼
_test/unsafe10.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
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