diff --git a/pages/common/godoc.md b/pages/common/godoc.md index 9119ad080..f51b69156 100644 --- a/pages/common/godoc.md +++ b/pages/common/godoc.md @@ -13,3 +13,11 @@ - Serve documentation as a web server on port "6060": `godoc -http=:{{6060}}` + +- Create an index file: + +`godoc -write_index -index_files={{path/to/file}}` + +- Use the given index file to search the docs: + +`godoc -http=:{{6060}} -index -index_files={{path/to/file}}`