You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comments on types correctly have single newlines stripped from them, but comments on fields do not. This is because of the behavior described in the documentation for ExtractGoComments:
When parsing type comments, we use the go/doc's Synopsis method to extract the first phrase only. Field comments, which tend to be much shorter, will include everything.
Synopsis is also the mechanism by which unmeaningful newlines are stripped, so we also lose this behavior for fields.
Comments on types correctly have single newlines stripped from them, but comments on fields do not. This is because of the behavior described in the documentation for
ExtractGoComments
:Synopsis is also the mechanism by which unmeaningful newlines are stripped, so we also lose this behavior for fields.
Related to (but not solved by) #67.
The text was updated successfully, but these errors were encountered: