Writing a local HTML file with godoc

I am attempting to write a local HTML file with godoc.
The command I used was

godoc -html -index_files -write_index=false  -goroot="/usr/local/go1.13.2.linux-amd64:" /path-to-pkg-main/main > index.html

I get the following error:
cannot find package “.” in:

Any advice to create a local file?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.