☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
defer7.go
☽
☼
_test/defer7.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
import
"fmt"
4
5
func
f1(in, out []
string
) {
6
defer
copy(out, in)
7
}
8
9
func
main() {
10
in := []
string
{
"foo"
,
"bar"
}
11
out := make([]
string
,
2
)
12
f1(in, out)
13
14
fmt.
Println
(out)
15
}
16
17
// Output:
18
// [foo bar]