github.com/golangCi/golangCi-lint@v1.10.1/test/testdata/unsafe/pkg.go (about) 1 package pkg 2 3 import ( 4 "log" 5 "unsafe" 6 ) 7 8 func F() { 9 x := 123 // of type int 10 p := unsafe.Pointer(&x) 11 pp := &p // of type *unsafe.Pointer 12 p = unsafe.Pointer(pp) 13 log.Print(p) 14 }