☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
switch21.go
☽
☼
_test/switch21.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
import
"fmt"
4
5
func
main() {
6
var
err
error
7
8
switch
v := err.(
type
) {
9
case
fmt.
Formatter
:
10
println(
"formatter"
)
11
default
:
12
fmt.
Println
(v)
13
}
14
}
15
16
// Output:
17
// <nil>