☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
interface0.go
☽
☼
_test/interface0.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
type
sample
struct
{
4
count
int
5
}
6
7
func
run(inf
interface
{}, name
string
) {
8
x := inf.(
sample
)
9
println(x.
count
, name)
10
}
11
12
func
main() {
13
a :=
sample
{
2
}
14
println(a.
count
)
15
run(a,
"truc"
)
16
}
17
18
// Output:
19
// 2
20
// 2 truc