clear: Mark a method that is about to expire

This commit is contained in:
zhangwenjian committed 2020-07-15 21:57:27 +08:00
1 parent 73f8572727
commit 18d116bc0c
1 file changed
+2
+2
View File
@@ -6,6 +6,8 @@ import (
"strconv"
)
// 不建议使用的方法(即将过时)
// Deprecated method (out of date)
func StrToInt(err error, index string) int {
result, err := strconv.Atoi(index)
if err != nil {