☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
composite8bis.go
☽
☼
_test/composite8bis.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
type
T
struct
{
I
int
}
4
5
func
main() {
6
t := []*
T
{}
7
s := []
int
{
1
,
2
}
8
for
_, e :=
range
s {
9
x := &
T
{I: e}
10
t = append(t, x)
11
}
12
println(t[
0
].
I
, t[
1
].
I
)
13
}
14
15
// Output:
16
// 1 2