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

[bug] It's a Bug when Zero value equals to the value I set #85

Open
xiaofeige opened this issue Feb 21, 2023 · 0 comments
Open

[bug] It's a Bug when Zero value equals to the value I set #85

xiaofeige opened this issue Feb 21, 2023 · 0 comments
Assignees

Comments

@xiaofeige
Copy link

xiaofeige commented Feb 21, 2023

Reproducible Example

config example:

var Config struct {
	AuthSettings struct {
		LwpNoAuth bool `required:"true" default:"true"`
	}
}

It doesn't work When I set LwpNoAuth to false, because you check blank in this way, see the picture below.
image

The value will always be true even if I set it to false.

Description

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

No branches or pull requests

2 participants