-
-
Notifications
You must be signed in to change notification settings - Fork 445
Ignoring fields with struct tag expr:"-" and make "in" return false for unexported fields #806
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
base: master
Are you sure you want to change the base?
Ignoring fields with struct tag expr:"-" and make "in" return false for unexported fields #806
Conversation
@@ -139,7 +140,71 @@ func ExampleEnv_tagged_field_names() { | |||
|
|||
fmt.Printf("%v", output) | |||
|
|||
// Output : Hello World |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unrelated but I realized that this example test was not being run because there is a space between Output
and :
, so I removed the space and the example test is now running and is successful.
// Output : Hello, you, world! | ||
// Output: Hello, you, world! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above: this is unrelated but I realized that this example test was not being run because there is a space between Output
and :
, so I removed the space and the example test is now running and is successful.
Fixes #805 and #807