14 lines
160 B
Go
14 lines
160 B
Go
package helper
|
|
|
|
import (
|
|
"strconv"
|
|
)
|
|
|
|
func ToInt(s string) int {
|
|
i, _ := strconv.Atoi(s)
|
|
return i
|
|
}
|
|
|
|
func ToString(i int) string {
|
|
return strconv.Itoa(i)
|
|
}
|