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

support parsedefault from defaultfile #177

Open
M09Ic opened this issue Oct 26, 2023 · 0 comments
Open

support parsedefault from defaultfile #177

M09Ic opened this issue Oct 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@M09Ic
Copy link

M09Ic commented Oct 26, 2023

support setting the default file when parsedefault complex structures.

type ConfigA struct {
	config ConfigB `config:"config" default:"configb.yaml"`
}

type ConfigB struct {
	A string `config:"a"`
	B string `config:"b"`
}

configb.yaml

a: aaa
b: bbb
@inhere inhere added the enhancement New feature or request label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants