MCPcopy
hub / github.com/ph4ntonn/Stowaway / Str2Int

Function Str2Int

utils/utils.go:46–49  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

44}
45
46func Str2Int(str string) (int, error) {
47 num, err := strconv.ParseInt(str, 10, 32)
48 return int(uint32(num)), err
49}
50
51func Int2Str(num int) string {
52 b := strconv.Itoa(num)

Callers 7

DeconstructHeaderMethod · 0.92
expectParamsMethod · 0.92
expectParamsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected