15 lines
160 B
Go
15 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)
|
||
|
}
|