New upstream release.
Debian Janitor
2 years ago
6 | 6 |
- go: 1.4
|
7 | 7 |
- go: 1.5
|
8 | 8 |
- go: 1.6
|
|
9 |
- go: 1.7
|
9 | 10 |
- go: tip
|
10 | |
|
11 | |
install:
|
12 | |
- go get golang.org/x/tools/cmd/vet
|
|
11 |
allow_failures:
|
|
12 |
- go: tip
|
13 | 13 |
|
14 | 14 |
script:
|
15 | 15 |
- go get -t -v ./...
|
16 | 16 |
- diff -u <(echo -n) <(gofmt -d .)
|
17 | |
- go tool vet .
|
|
17 |
- go vet $(go list ./... | grep -v /vendor/)
|
18 | 18 |
- go test -v -race ./...
|
3 | 3 |
|
4 | 4 |
gorilla/context is a general purpose registry for global request variables.
|
5 | 5 |
|
|
6 |
> Note: gorilla/context, having been born well before `context.Context` existed, does not play well
|
|
7 |
> with the shallow copying of the request that [`http.Request.WithContext`](https://golang.org/pkg/net/http/#Request.WithContext) (added to net/http Go 1.7 onwards) performs. You should either use *just* gorilla/context, or moving forward, the new `http.Request.Context()`.
|
|
8 |
|
6 | 9 |
Read the full documentation here: http://www.gorillatoolkit.org/pkg/context
|
68 | 68 |
|
69 | 69 |
// GetAllOk() for empty request
|
70 | 70 |
values, ok = GetAllOk(emptyR)
|
71 | |
assertEqual(value, nil)
|
|
71 |
assertEqual(len(values), 0)
|
72 | 72 |
assertEqual(ok, false)
|
73 | 73 |
|
74 | 74 |
// Delete()
|
0 | |
golang-context (1.1-4) UNRELEASED; urgency=medium
|
|
0 |
golang-context (1.1.1-1) UNRELEASED; urgency=medium
|
1 | 1 |
|
2 | 2 |
[ Alexandre Viau ]
|
3 | 3 |
* Point Vcs-* urls to salsa.debian.org.
|
|
12 | 12 |
golang-context-dev in Replaces.
|
13 | 13 |
+ golang-github-gorilla-context-dev: Drop versioned constraint on
|
14 | 14 |
golang-context-dev in Breaks.
|
|
15 |
* New upstream release.
|
15 | 16 |
|
16 | |
-- Alexandre Viau <aviau@debian.org> Mon, 02 Apr 2018 13:56:45 -0400
|
|
17 |
-- Alexandre Viau <aviau@debian.org> Sun, 26 Sep 2021 22:32:26 -0000
|
17 | 18 |
|
18 | 19 |
golang-context (1.1-3) unstable; urgency=medium
|
19 | 20 |
|
3 | 3 |
|
4 | 4 |
/*
|
5 | 5 |
Package context stores values shared during a request lifetime.
|
|
6 |
|
|
7 |
Note: gorilla/context, having been born well before `context.Context` existed,
|
|
8 |
does not play well > with the shallow copying of the request that
|
|
9 |
[`http.Request.WithContext`](https://golang.org/pkg/net/http/#Request.WithContext)
|
|
10 |
(added to net/http Go 1.7 onwards) performs. You should either use *just*
|
|
11 |
gorilla/context, or moving forward, the new `http.Request.Context()`.
|
6 | 12 |
|
7 | 13 |
For example, a router can set variables extracted from the URL and later
|
8 | 14 |
application handlers can access those values, or it can be used to store
|