☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
interface44.go
☽
☼
_test/interface44.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
type
S
struct
{
4
a
int
5
}
6
7
func
main() {
8
var
i
interface
{} =
S
{a:
1
}
9
10
s, ok := i.(
S
)
11
if
!ok {
12
println(
"bad"
)
13
return
14
}
15
println(s.
a
)
16
}
17
18
// Output:
19
// 1