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

Does not support golang composite? #822

Closed
ezhishui opened this issue Jan 8, 2020 · 1 comment
Closed

Does not support golang composite? #822

ezhishui opened this issue Jan 8, 2020 · 1 comment
Labels
resolution/duplicate This issue or pull request already exists

Comments

@ezhishui
Copy link

ezhishui commented Jan 8, 2020

yml:

a1: 1
b1: 2
type A struct{
	A1 string
}
type B struct {
	A
	B1 string
}

obj := B{}
vip.Unmarshal(&obj);

Viper can not set A1=1?

@sagikazarmark
Copy link
Collaborator

Duplicate of #797 #820

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants