Skip to content

Commit

Permalink
simple doc
Browse files Browse the repository at this point in the history
  • Loading branch information
amirrezaask committed Nov 20, 2021
1 parent 6b0eda7 commit d1378b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions binder.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import (
"unsafe"
)

// ptrsFor does for each field in struct:
// if field is primitive just allocate and add pointer
// if field is struct call recursively and add all pointers
func (o *ObjectMetadata) ptrsFor(v reflect.Value, cts []*sql.ColumnType) []interface{} {
t := v.Type()

Expand Down

0 comments on commit d1378b4

Please sign in to comment.