diff --git a/README.md b/README.md index 9e86053..70190ae 100644 --- a/README.md +++ b/README.md @@ -347,3 +347,8 @@ cvt.StringMapE(struct { ## License This project is under the terms of the [MIT](LICENSE) license. + +## Thanks +- [JetBrains Open Source Support](https://jb.gg/OpenSourceSupport) + +![JetBrains Logo (Main) logo](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png) diff --git a/README_ZH.md b/README_ZH.md index 873d6ad..4d0d201 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -347,3 +347,8 @@ cvt.StringMapE(struct { ## 开源协议 本项目基于 [MIT](LICENSE) 协议开放源代码。 + +## 感谢 +- [JetBrains Open Source Support](https://jb.gg/OpenSourceSupport) + +![JetBrains Logo (Main) logo](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png) diff --git a/cvte.go b/cvte.go index 8c157ef..fe3a853 100644 --- a/cvte.go +++ b/cvte.go @@ -128,7 +128,7 @@ func indirect(a interface{}) (val interface{}, rv reflect.Value) { val = rv.Interface() switch rv.Kind() { - case reflect.Ptr: // indirect the base type, if is been referenced many times + case reflect.Ptr: // indirect the base type, if has been referenced many times for rv.Kind() == reflect.Ptr { // stop indirect until nil, avoid stack overflow if rv.IsNil() {