Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby committed Feb 9, 2022
1 parent 2649e1e commit 54c3bdb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
[![GoReportCard](https://goreportcard.com/badge/github.com/rekby/objwalker)](https://goreportcard.com/report/github.com/rekby/objwalker)

Deep walk by object with reflection. With recursive loop protection.

WalkInfo - struct, send as argument to callback function include:

```Value``` - reflection.Value object for read/manipulate with it.
```InternalStructSize``` - size of internal structs (slice/string header, map struct at first level, ...)
```DataPointer``` - direct pointer to underly data, for example - pointer to bytes under string, ot pointer to data under slice. It is danger to manipulate it, but can userful for example for compare objects.

```golang
type S struct {
Val1 int
Expand Down

0 comments on commit 54c3bdb

Please sign in to comment.