MCPcopy Create free account
hub / github.com/devfeel/dotweb / String2Int

Function String2Int

framework/convert/convert.go:16–18  ·  view source on GitHub ↗

String2Int convert string to int

(val string)

Source from the content-addressed store, hash-verified

14
15// String2Int convert string to int
16func String2Int(val string) (int, error) {
17 return strconv.Atoi(val)
18}
19
20// Int2String convert int to string
21func Int2String(val int) string {

Callers 2

Test_String2Int_1Function · 0.85
Test_String2Int_2Function · 0.85

Calls

no outgoing calls

Tested by 2

Test_String2Int_1Function · 0.68
Test_String2Int_2Function · 0.68