aboutsummaryrefslogtreecommitdiff
path: root/content/context
Commit message (Collapse)AuthorAge
* content/context: use req.WithContextAgniva De Sarker2018-12-21
| | | | | | | | | | | (*Transport).CancelRequest is now deprecated. Use the new (*Request).WithContext method which inherits the parent context. Fixes golang/go#29075 Change-Id: I4a275a396c6ed64eef73b688a049e7bc372f07d4 Reviewed-on: https://go-review.googlesource.com/c/153957 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
* blog: clean up blog to allow usage with gcloud commandAndrew Bonventre2018-05-24
| | | | | | | | | | | | | | | | | + The app.yaml file needs to be in the same directory as the entry-point Go files, so those are moved from ./blog to ./ + Go files within the context article did not have the +build OMIT directive, so gcloud would view them as files that needed to be built at deploy time. Add the +build OMIT directive and use the context package instead of x/net/context. + Switch to using a service instead of version and update app.yaml to account for this. + Use 1.9 as the runtime. + Remove superfluous .gitignore Change-Id: I7c886849b912bc7f5b67cd2791cb6986d93d5cc7 Reviewed-on: https://go-review.googlesource.com/114455 Reviewed-by: Russ Cox <rsc@golang.org>
* content: add disclaimers to context example packagesAndrew Gerrand2016-05-05
| | | | | | Change-Id: I22fb0964e794cb98be572ef2d48a2c995652f6b0 Reviewed-on: https://go-review.googlesource.com/22781 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
* go.blog: use new golang.org/x/... import pathsAndrew Gerrand2014-11-10
| | | | | | | TBR=rsc R=rsc, r CC=golang-codereviews https://golang.org/cl/170250043
* go.blog: exclude gorilla example (fixes build)Dave Cheney2014-08-08
| | | | | | | | | | | Fix the build on builders that do not have git installed. See discussion: https://groups.google.com/forum/#!topic/golang-dev/SAv_H7fJHkw LGTM=adg R=adg CC=golang-codereviews https://golang.org/cl/124890043
* go.blog/context: userip support for IPv6 host/port.Paul Nasrat2014-08-07
| | | | | | | | | | | Makes example usable on IPv6 systems eg where localhost is ::1. Fixes golang/go#8486. LGTM=adg R=golang-codereviews, dave, adg CC=golang-codereviews, sameer https://golang.org/cl/117530044
* go.blog: fix build errorsDave Cheney2014-08-07
| | | | | | | | | Exclude these two files from the build LGTM=adg R=adg CC=golang-codereviews https://golang.org/cl/126760044
* go.blog/context: don't use the address of an empty struct as a contextSameer Ajmani2014-07-29
| | | | | | | | | | | key, as this is not guaranteed to be unique. Fixes golang/go#8443. LGTM=campoy R=adg, campoy CC=dsymonds, golang-codereviews https://golang.org/cl/121890043
* go.blog/context: an article about go.net/context.Context.Sameer Ajmani2014-07-28
Blog demo (internal): http://olivia.nyc.corp.google.com:8081/context Server demo (internal): http://olivia.nyc.corp.google.com:8080/search?q=golang&timeout=1s LGTM=bcmills, adg, r R=r, rsc, adg, bcmills, ken, adonovan, dsymonds, crawshaw, campoy, hakim, dneil https://golang.org/cl/116820044