The integrated Godoc viewer in LiteIDE provides an easy way to browse documentation generated by the godoc tool without leaving the editor. Documentation can be viewed for both the official Go language as well as custom packages. The remainder of this page describes ways to invoke the Godoc viewer.
It is possible to view documentation by directly entering a URL into the Godoc viewer's address bar. When doing this, you can specify what type of documentation you are looking for by prefixing the address with one of the following URL schemes:
Searches for packages with a specified string in their name. For example:
Lists all packages in a given directory. The main choices are "pkg" and "cmd", which can be found as links in the header of the page. For example:
Views documentation for a specified package or command. For example:
Views a specified HTML, Markdown, or plain-text file. For example:
For the "file" and "pdoc" schemes, you do not need to type the scheme as part of the URL. For example:
You can open the Godoc viewer directly from the file browser by right clicking on a file or directory and selecting "View Godoc Here". The Godoc viewer will automatically open the package documentation for the chosen item.