MCPcopy 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

3import "strconv"
4
5func 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

ExecuteMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected