Make core atoi func public

This commit is contained in:
Alexey Khit
2023-04-24 06:39:07 +03:00
parent 63d9c6c2b7
commit 813c8b3b3d
2 changed files with 7 additions and 7 deletions
+5
View File
@@ -41,6 +41,11 @@ func Between(s, sub1, sub2 string) string {
return s
}
func Atoi(s string) (i int) {
i, _ = strconv.Atoi(s)
return
}
func Assert(ok bool) {
if !ok {
_, file, line, _ := runtime.Caller(1)