소스 검색

godoc: add options to use index (#2234)

Agniva De Sarker 6 년 전
부모
커밋
c40a7761a1
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      pages/common/godoc.md

+ 8 - 0
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}}`