☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
issue-1185.go
☽
☼
_test/issue-1185.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
import
"io"
4
5
type
B
[]
byte
6
7
func
(b
B
)
Write
(p []
byte
) (n
int
, err
error
) {
8
b = p
9
return
len(p),
nil
10
}
11
12
func
main() {
13
b :=
B
{}
14
a := make([]io.
Writer
,
0
)
15
a = append(a, b)
16
println(len(a))
17
}
18
19
// Output:
20
// 1