]> Cypherpunks repositories - gostls13.git/commitdiff
doc/articles/wiki: add missing log import to net/http tutorial
authorChirag Sukhala <cchirag77@gmail.com>
Sun, 16 Aug 2020 21:49:53 +0000 (21:49 +0000)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Sun, 16 Aug 2020 21:51:36 +0000 (21:51 +0000)
The log package is used with the net/http but was not in the import clause.

Change-Id: Ic45b987633adf0ee15defd4d136b5d37027e22b0
GitHub-Last-Rev: e74aff53370569864b7ec8c18617a5d992d34bf2
GitHub-Pull-Request: golang/go#36674
Reviewed-on: https://go-review.googlesource.com/c/go/+/215618
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
doc/articles/wiki/index.html

index 4e3a5deab56639cc017b17dc46eaec413bd9f275..a74a58e31719d558e24d5dfaad7605ede4fdd8d8 100644 (file)
@@ -257,6 +257,7 @@ To use the <code>net/http</code> package, it must be imported:
 import (
        "fmt"
        "io/ioutil"
+       "log"
        <b>"net/http"</b>
 )
 </pre>