☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
unsafe1.go
☽
☼
_test/unsafe1.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
S
struct
{
6
Name
string
7
}
8
9
func
main() {
10
s := &
S
{Name:
"foobar"
}
11
12
p := unsafe.
Pointer
(s)
13
14
s2 := (*S)(p)
15
16
println(s2.
Name
)
17
}
18
19
// Output:
20
// foobar