Skip to content
Snippets Groups Projects
Commit 4bb0dbcc authored by Cornel Rautenbach's avatar Cornel Rautenbach
Browse files

Merge branch 'main' of gitlab.com:uafrica/go-utils

parents ba4ed6b9 5abad3b2
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,14 @@ func Int64SliceToString(numbers []int64) string {
return numString
}
func Int64SliceToStringSlice(numbers []int64) []string {
var numStringSlice []string
for _, number := range numbers {
numStringSlice = append(numStringSlice, fmt.Sprint(number))
}
return numStringSlice
}
func StringToInt64(stringValue string) (int64, error) {
number, err := strconv.ParseInt(stringValue, 10, 64)
return number, err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment