fatih / structtag

Parse and modify Go struct field tags
Other
633 stars 39 forks source link

ignoring trailing whitespace. fixes #8 #9

Closed stephens2424 closed 4 years ago

stephens2424 commented 5 years ago

One detail about this change: I made no effort to preserve the trailing whitespace and so it doesn't get printed back when the String method is used on the parsed tags. The comment on that method indicates it's reassembling the tags to a valid string, so I figured it fit, but lmk if you think otherwise.

fatih commented 4 years ago

Thank you @stephens2424 for the fix and improvement.