Removes Go 1.0 and 1.1 from Travis config
This commit is contained in:
parent
9cb23279f5
commit
e8b35c877d
|
@ -1,8 +1,6 @@
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.0
|
|
||||||
- 1.1
|
|
||||||
- 1.2
|
- 1.2
|
||||||
- 1.3
|
- 1.3
|
||||||
- 1.4
|
- 1.4
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Golang Link Header Parser
|
# Golang Link Header Parser
|
||||||
|
|
||||||
Library for parsing HTTP Link headers.
|
Library for parsing HTTP Link headers. Requires Go 1.2 or higher.
|
||||||
|
|
||||||
Docs can be found on [the GoDoc page](https://godoc.org/github.com/TomNomNom/linkheader).
|
Docs can be found on [the GoDoc page](https://godoc.org/github.com/TomNomNom/linkheader).
|
||||||
|
|
||||||
|
@ -9,6 +9,8 @@ Docs can be found on [the GoDoc page](https://godoc.org/github.com/TomNomNom/lin
|
||||||
## Basic Example
|
## Basic Example
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
import "github.com/tomnomnom/linkheader"
|
||||||
|
|
||||||
header := "<https://api.github.com/user/58276/repos?page=2>; rel=\"next\"," +
|
header := "<https://api.github.com/user/58276/repos?page=2>; rel=\"next\"," +
|
||||||
"<https://api.github.com/user/58276/repos?page=2>; rel=\"last\""
|
"<https://api.github.com/user/58276/repos?page=2>; rel=\"last\""
|
||||||
links := linkheader.Parse(header)
|
links := linkheader.Parse(header)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user