☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
issue-1300.go
☽
☼
_test/issue-1300.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
const
buflen =
512
4
5
type
T
struct
{
6
buf
[]
byte
7
}
8
9
func
f(t *
T
) { *t =
T
{buf: make([]
byte
,
0
, buflen)} }
10
11
func
main() {
12
s :=
T
{}
13
println(cap(s.
buf
))
14
f(&s)
15
println(cap(s.
buf
))
16
}
17
18
// Output:
19
// 0
20
// 512