Codebase list golang-context / d8f38a67-a1c7-429f-b1d3-7ee0a0ae773c/main
New upstream release. Debian Janitor 2 years ago
5 changed file(s) with 17 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
66 - go: 1.4
77 - go: 1.5
88 - go: 1.6
9 - go: 1.7
910 - go: tip
10
11 install:
12 - go get golang.org/x/tools/cmd/vet
11 allow_failures:
12 - go: tip
1313
1414 script:
1515 - go get -t -v ./...
1616 - diff -u <(echo -n) <(gofmt -d .)
17 - go tool vet .
17 - go vet $(go list ./... | grep -v /vendor/)
1818 - go test -v -race ./...
33
44 gorilla/context is a general purpose registry for global request variables.
55
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
69 Read the full documentation here: http://www.gorillatoolkit.org/pkg/context
6868
6969 // GetAllOk() for empty request
7070 values, ok = GetAllOk(emptyR)
71 assertEqual(value, nil)
71 assertEqual(len(values), 0)
7272 assertEqual(ok, false)
7373
7474 // Delete()
0 golang-context (1.1-4) UNRELEASED; urgency=medium
0 golang-context (1.1.1-1) UNRELEASED; urgency=medium
11
22 [ Alexandre Viau ]
33 * Point Vcs-* urls to salsa.debian.org.
1212 golang-context-dev in Replaces.
1313 + golang-github-gorilla-context-dev: Drop versioned constraint on
1414 golang-context-dev in Breaks.
15 * New upstream release.
1516
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
1718
1819 golang-context (1.1-3) unstable; urgency=medium
1920
33
44 /*
55 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()`.
612
713 For example, a router can set variables extracted from the URL and later
814 application handlers can access those values, or it can be used to store