☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
convert1.go
☽
☼
_test/convert1.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
import
"strconv"
4
5
type
atoidef
func
(s
string
) (
int
,
error
)
6
7
func
main() {
8
stdatoi := atoidef(strconv.
Atoi
)
9
n, err := stdatoi(
"7"
)
10
if
err !=
nil
{
11
panic(err)
12
}
13
println(n)
14
}
15
16
// Output:
17
// 7