go - Godoc, create html for entire package -


how can use godoc create html documentation entire package. i.e. recursively. @ moment when run:

godoc -html -goroot="mypath" pkg > index.html 

i index.html contains information on .go files in current directory.

there no documentation other sub packages index.html include dead links them.

how can run above command in recursive fashion? perhaps missing because there no mention of recursion in godoc documentation.

go has no notion of "sub packages" in reality - packages packages, can tell package declaration @ top of file not having hierarchy. unidiomatic package documentation nested subdirectories single file - subdirectories contain different packages, documentation should separate.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

android - CoordinatorLayout, FAB and container layout conflict -