☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
struct16.go
☽
☼
_test/struct16.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
type
S1
struct
{
4
Name
string
5
}
6
7
type
S2
struct
{
8
*
S1
9
}
10
11
func
main() {
12
s1 :=
S1
{
"foo"
}
13
s2 :=
S2
{&s1}
14
println(s2.
Name
)
15
}
16
17
// Output:
18
// foo