Skip to content

Commit a74a92c

Browse files
authored
Merge pull request #35 from pityonline/master
add CI stages, fix some trivial style and typo matters
2 parents b4c1dcb + 1b1672e commit a74a92c

File tree

3 files changed

+45
-17
lines changed

3 files changed

+45
-17
lines changed

.travis.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
11
language: go
22

33
go:
4-
- 1.9
4+
- 1.9.x
5+
- 1.10.x
6+
- master
7+
8+
stages:
9+
- lint
10+
- test
11+
- build
12+
13+
jobs:
14+
include:
15+
- stage: lint
16+
script:
17+
- go get -u golang.org/x/lint/golint
18+
- golint -set_exit_status
19+
- go vet -v
20+
- stage: test
21+
script:
22+
- go test -v
23+
- stage: build
24+
script:
25+
- go build
26+
27+
matrix:
28+
allow_failures:
29+
- go: master
30+
fast_finish: true

README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
gogetdoc
2-
========
1+
# gogetdoc
32

43
[![Build Status](https://travis-ci.org/zmb3/gogetdoc.svg?branch=master)](https://travis-ci.org/zmb3/gogetdoc)
4+
[![Go Report Card](https://goreportcard.com/badge/github.com/zmb3/gogetdoc)](https://goreportcard.com/report/github.com/zmb3/gogetdoc)
55

66
Retrieve documentation for items in Go source code.
77

@@ -30,32 +30,34 @@ import "unicode/utf8"
3030
func RuneCountInString(s string) (n int)
3131
3232
RuneCountInString is like RuneCount but its input is a string.
33-
3433
```
3534

3635
The `-json` flag can be used to enable the extended JSON output.
3736
In this mode, a JSON object will be written to stdout instead of the raw doc.
3837

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+
```
4748

4849
### Unsaved files
4950

5051
`gogetdoc` supports the same archive format as `guru` (formerly `oracle`).
5152
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.
5354
Files in the archive will be preferred over those on disk.
5455

5556
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
5961

6062
## Editor Support
6163

testdata/vp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Package vp is an exmaple vendored package.
1+
// Package vp is an example vendored package.
22
package vp
33

44
import "fmt"

0 commit comments

Comments
 (0)