diff options
Diffstat (limited to 'libgo/go/net/http/doc.go')
-rw-r--r-- | libgo/go/net/http/doc.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/go/net/http/doc.go b/libgo/go/net/http/doc.go index 2dbcf8d..8962ed3 100644 --- a/libgo/go/net/http/doc.go +++ b/libgo/go/net/http/doc.go @@ -34,7 +34,8 @@ settings, create a Client: resp, err := client.Get("http://example.com") // ... - req := http.NewRequest("GET", "http://example.com", nil) + req, err := http.NewRequest("GET", "http://example.com", nil) + // ... req.Header.Add("If-None-Match", `W/"wyzzy"`) resp, err := client.Do(req) // ... |