Skip to content

support pointer to object slice#21

Open
epicmr wants to merge 1 commit into
cocoonspace:masterfrom
epicmr:PointerToSlice
Open

support pointer to object slice#21
epicmr wants to merge 1 commit into
cocoonspace:masterfrom
epicmr:PointerToSlice

Conversation

@epicmr
Copy link
Copy Markdown

@epicmr epicmr commented Apr 12, 2023

No description provided.

Copy link
Copy Markdown
Contributor

@jfbus jfbus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution, and sorry for the late answer.

Comment thread slice.go
dst.Index(i).Set(dv)
}
return dst, nil
dstAddr := reflect.New(f.t).Elem()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this part necessary ?

Comment thread pointer.go
eb, err = makeStructBuilder(t.Elem())
} else if t.Elem().Kind() == reflect.Slice {
eb, err = makeSliceBuilder(t.Elem())
} else {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

based on builder.go, this will never occur...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants