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

Ability to suppress fields from display #120

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

klaxxon
Copy link

@klaxxon klaxxon commented Feb 3, 2020

This is my first pull request. Just the config file is what I am asking for you to consider.

Using your package and my structs contain a lot of management/housekeeping sub-structs which clutter up the output. I needed a way to say "don't show any 'config' structs" or of the type "TempData".

Creates and maintains a map of strings for field names and types. Two methods to add the name or type to these maps and continue statements in your recursive output builder to skip these fields if they are found.

Thank You!

@ptrcnull
Copy link

ptrcnull commented Nov 2, 2021

IMHO it would be simpler to just export the field in config struct and get rid of the IgnoreFieldBy(...) methods.

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 this pull request may close these issues.

2 participants