chore: refactor mapping errors (#3843)

This commit is contained in:
Kevin Wan
2024-01-13 22:11:19 +08:00
committed by GitHub
parent 0441f84606
commit 7822a4c1cb
3 changed files with 4 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ const (
var (
errUnsupportedType = errors.New("unsupported type on setting field value")
errNumberRange = errors.New("wrong number range setting")
errNilSliceElement = errors.New("null element for slice")
optionsCache = make(map[string]optionsCacheValue)
cacheLock sync.RWMutex
structRequiredCache = make(map[reflect.Type]requiredCacheValue)