|
1 |
| -gogetdoc |
2 |
| -======== |
| 1 | +# gogetdoc |
3 | 2 |
|
4 | 3 | [](https://travis-ci.org/zmb3/gogetdoc)
|
| 4 | +[](https://goreportcard.com/report/github.com/zmb3/gogetdoc) |
5 | 5 |
|
6 | 6 | Retrieve documentation for items in Go source code.
|
7 | 7 |
|
@@ -30,32 +30,34 @@ import "unicode/utf8"
|
30 | 30 | func RuneCountInString(s string) (n int)
|
31 | 31 |
|
32 | 32 | RuneCountInString is like RuneCount but its input is a string.
|
33 |
| -
|
34 | 33 | ```
|
35 | 34 |
|
36 | 35 | The `-json` flag can be used to enable the extended JSON output.
|
37 | 36 | In this mode, a JSON object will be written to stdout instead of the raw doc.
|
38 | 37 |
|
39 |
| - { |
40 |
| - "name": "RuneCountInString", |
41 |
| - "import": "unicode/utf8", |
42 |
| - "pkg": "utf8", |
43 |
| - "decl": "func RuneCountInString(s string) (n int)", |
44 |
| - "doc": "RuneCountInString is like RuneCount but its input is a string.\n", |
45 |
| - "pos": "/usr/local/Cellar/go/1.9/libexec/src/unicode/utf8/utf8.go:412:6" |
46 |
| - } |
| 38 | +```javascript |
| 39 | +{ |
| 40 | + "name": "RuneCountInString", |
| 41 | + "import": "unicode/utf8", |
| 42 | + "pkg": "utf8", |
| 43 | + "decl": "func RuneCountInString(s string) (n int)", |
| 44 | + "doc": "RuneCountInString is like RuneCount but its input is a string.\n", |
| 45 | + "pos": "/usr/local/Cellar/go/1.9/libexec/src/unicode/utf8/utf8.go:412:6" |
| 46 | +} |
| 47 | +``` |
47 | 48 |
|
48 | 49 | ### Unsaved files
|
49 | 50 |
|
50 | 51 | `gogetdoc` supports the same archive format as `guru` (formerly `oracle`).
|
51 | 52 | Editors can supply `gogetdoc` with the contents of unsaved buffers by
|
52 |
| -using the `-modified` flag and writing an archive to stdin. |
| 53 | +using the `-modified` flag and writing an archive to stdin. |
53 | 54 | Files in the archive will be preferred over those on disk.
|
54 | 55 |
|
55 | 56 | Each archive entry consists of:
|
56 |
| - - the file name, followed by a newline |
57 |
| - - the (decimal) file size, followed by a newline |
58 |
| - - the contents of the file |
| 57 | + |
| 58 | +- the file name, followed by a newline |
| 59 | +- the (decimal) file size, followed by a newline |
| 60 | +- the contents of the file |
59 | 61 |
|
60 | 62 | ## Editor Support
|
61 | 63 |
|
|
0 commit comments