Using unset flags as nil #204
Unanswered
iancullinane
asked this question in
Q&A
Replies: 1 comment
-
No, there's currently no way to do this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now, after I parse my CLI, I am doing the following to use the result:
However lets say u.FIeldOne is of type *string and I want them to be nil when the flag is empty. However it appears empty flags will be a default value. Is there an "Kong" way of processing these as nil?
Beta Was this translation helpful? Give feedback.
All reactions