mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-09 09:15:47 +02:00
godoc: add options to use index (#2234)
This commit is contained in:
parent
346d60f005
commit
c40a7761a1
1 changed files with 8 additions and 0 deletions
|
@ -13,3 +13,11 @@
|
||||||
- Serve documentation as a web server on port "6060":
|
- Serve documentation as a web server on port "6060":
|
||||||
|
|
||||||
`godoc -http=:{{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}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue