fix: err code 迁移到各自的包下 (#65)

This commit is contained in:
libin
2024-04-03 10:37:59 +08:00
committed by GitHub
parent 0a5162c6ca
commit ef397cab50
24 changed files with 123 additions and 108 deletions

16
jsonUtil/err_code.go Normal file
View File

@@ -0,0 +1,16 @@
package jsonUtil
import (
"errors"
"strconv"
)
var (
// ErrSyntax indicates that a value does not have the right syntax for the target type
// 指示值不具有目标类型的正确语法
ErrSyntax = strconv.ErrSyntax
// ErrType indicates that a value does not have the right syntax for the target type
// 指示值不具有目标类型的正确语法
ErrType = errors.New("unsupported type")
)