diff --git a/encoding/json/json.go b/encoding/json/json.go index 22893b3..d5f0009 100644 --- a/encoding/json/json.go +++ b/encoding/json/json.go @@ -5,7 +5,7 @@ import ( "fmt" "reflect" - our "git.loafle.net/overflow/util-go/reflect" + cr "github.com/corpix/reflect" ) // SetValueWithJSONStringArray set the value of json string array @@ -41,7 +41,7 @@ func SetValueWithJSONStringArray(values []string, targets []interface{}) error { case reflect.Ptr: return fmt.Errorf("Type of target[%d] cannot be double ptr, value=%s", indexI, value) default: - cv, err := our.ConvertToType(value, reflect.TypeOf(target).Elem()) + cv, err := cr.ConvertToType(value, reflect.TypeOf(target).Elem()) if nil != err { return fmt.Errorf("Type conversion of value[%s] has been failed to %s[%d]", value, reflect.TypeOf(target).Elem().Kind(), indexI) }