Skip to content

Commit

Permalink
Add JetBrains Open Source Support
Browse files Browse the repository at this point in the history
  • Loading branch information
shockerli committed Jan 8, 2022
1 parent 8f069a0 commit 450c1a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 5 additions & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion cvte.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 450c1a5

Please sign in to comment.