github.com/jenkins-x/jx/v2@v2.1.155/pkg/util/numbers.go (about) 1 package util 2 3 import "strconv" 4 5 func Int32ToA(n int32) string { 6 return strconv.FormatInt(int64(n), 10) 7 } 8 9 func AtoInt32(text string) (int32, error) { 10 i, err := strconv.ParseInt(text, 10, 32) 11 if err != nil { 12 return 0, err 13 } 14 return int32(i), nil 15 }