☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
switch39.go
☽
☼
_test/switch39.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
func
f(params ...
interface
{}) {
4
switch
p0 := params[
0
].(
type
) {
5
case
string
:
6
println(
"string:"
, p0)
7
default
:
8
println(
"not a string"
)
9
}
10
}
11
12
func
main() {
13
f(
"Hello"
)
14
}
15
16
// Output:
17
// string: Hello