Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/cloudfoundry/cli
/ ParseStringToInt
Function
ParseStringToInt
command/flag/parse.go:5–11 ·
view source on GitHub ↗
(str string)
Source
from the content-addressed store, hash-verified
3
import
"strconv"
4
5
func
ParseStringToInt(str string) (int, error) {
6
integer64Bit, err := strconv.ParseInt(str, 0, 0)
7
if
err != nil {
8
return
0, err
9
}
10
return
int(integer64Bit), nil
11
}
Callers
1
Execute
Method · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected