Can godoc tool hide constants and variables content?

90 Views Asked by At

I want to write some document for my program and use godoc to generate a html document page.

However, it reveals some exported constants and variables. They are exportable because other packages in this program need them. But it is unnecessary for a user to acknowledge these constants and variables. And showing them in document is ugly.

So can I hide constants and variables part in godoc page for my personal packages?

1

There are 1 best solutions below

0
Volker On

So can I hide constants and variables part in godoc page for my personal packages?

No.