Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: reflect: reflect.Value.Set using value obtained using unexported field #174

Closed
abicky opened this issue Jan 27, 2021 · 1 comment · Fixed by #175
Closed

panic: reflect: reflect.Value.Set using value obtained using unexported field #174

abicky opened this issue Jan 27, 2021 · 1 comment · Fixed by #175

Comments

@abicky
Copy link
Contributor

abicky commented Jan 27, 2021

mergo.Mege panics when the following code is executed:

package main

import "github.com/imdario/mergo"

type structWithBlankField struct {
	_ struct{}
	A struct{}
}

func main() {
	mergo.Merge(&structWithBlankField{}, structWithBlankField{}, mergo.WithOverride)
}
@xscode-auto-reply
Copy link

Thanks for opening a new issue. The team has been notified and will review it as soon as possible.
For urgent issues and priority support, visit https://xscode.com/imdario/mergo

abicky added a commit to abicky/mergo that referenced this issue Jan 27, 2021
abicky added a commit to abicky/mergo that referenced this issue Jan 27, 2021
This was referenced Mar 10, 2021
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 a pull request may close this issue.

1 participant