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

Ignore comment line of struct fields #1712

Open
iredmail opened this issue Nov 30, 2023 · 1 comment
Open

Ignore comment line of struct fields #1712

iredmail opened this issue Nov 30, 2023 · 1 comment

Comments

@iredmail
Copy link

iredmail commented Nov 30, 2023

Is your feature request related to a problem? Please describe.

No.

Describe the solution you'd like

We write comments in non-English, but software will be used by people speak only English, so we'd like to hide (all) comment lines. Is there a way to not extract comment lines of struct fields? (struct is used as models in doc)

@Virviil
Copy link

Virviil commented Apr 16, 2024

You've got some workaround

type Foo struct {
  bar bool
  // Comment for a field

  baz string
  // Comment for another field
}

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

No branches or pull requests

2 participants