]> Cypherpunks repositories - gostls13.git/commitdiff
renaming_1: hand-edited files for go 1 renaming
authorRob Pike <r@golang.org>
Tue, 8 Nov 2011 23:38:47 +0000 (15:38 -0800)
committerRob Pike <r@golang.org>
Tue, 8 Nov 2011 23:38:47 +0000 (15:38 -0800)
This contains the files that required handiwork, mostly
Makefiles with updated TARGs, plus the two packages
with modified package names.
html/template/doc.go needs a separate edit pass.
test/fixedbugs/bug358.go is not legal go so gofix fails on it.

R=rsc
CC=golang-dev
https://golang.org/cl/5340050

66 files changed:
doc/effective_go.html
doc/effective_go.tmpl
src/pkg/deps.bash
src/pkg/encoding/asn1/Makefile
src/pkg/encoding/csv/Makefile
src/pkg/encoding/gob/Makefile
src/pkg/encoding/json/Makefile
src/pkg/encoding/xml/Makefile
src/pkg/html/template/Makefile
src/pkg/html/template/attr.go
src/pkg/html/template/clone.go
src/pkg/html/template/clone_test.go
src/pkg/html/template/content.go
src/pkg/html/template/content_test.go
src/pkg/html/template/context.go
src/pkg/html/template/css.go
src/pkg/html/template/css_test.go
src/pkg/html/template/doc.go
src/pkg/html/template/error.go
src/pkg/html/template/escape.go
src/pkg/html/template/escape_test.go
src/pkg/html/template/html.go
src/pkg/html/template/html_test.go
src/pkg/html/template/js.go
src/pkg/html/template/js_test.go
src/pkg/html/template/template.go
src/pkg/html/template/transition.go
src/pkg/html/template/url.go
src/pkg/html/template/url_test.go
src/pkg/log/syslog/Makefile
src/pkg/math/big/Makefile
src/pkg/math/cmplx/Makefile
src/pkg/math/cmplx/abs.go
src/pkg/math/cmplx/asin.go
src/pkg/math/cmplx/cmath_test.go
src/pkg/math/cmplx/conj.go
src/pkg/math/cmplx/exp.go
src/pkg/math/cmplx/isinf.go
src/pkg/math/cmplx/isnan.go
src/pkg/math/cmplx/log.go
src/pkg/math/cmplx/phase.go
src/pkg/math/cmplx/polar.go
src/pkg/math/cmplx/pow.go
src/pkg/math/cmplx/rect.go
src/pkg/math/cmplx/sin.go
src/pkg/math/cmplx/sqrt.go
src/pkg/math/cmplx/tan.go
src/pkg/math/rand/Makefile
src/pkg/net/http/Makefile
src/pkg/net/http/cgi/Makefile
src/pkg/net/http/fcgi/Makefile
src/pkg/net/http/httptest/Makefile
src/pkg/net/http/pprof/Makefile
src/pkg/net/mail/Makefile
src/pkg/net/rpc/Makefile
src/pkg/net/rpc/jsonrpc/Makefile
src/pkg/net/smtp/Makefile
src/pkg/net/url/Makefile
src/pkg/os/exec/Makefile
src/pkg/text/scanner/Makefile
src/pkg/text/tabwriter/Makefile
src/pkg/text/template/Makefile
src/pkg/text/template/parse/Makefile
src/pkg/unicode/utf16/Makefile
src/pkg/unicode/utf8/Makefile
test/fixedbugs/bug358.go

index a58989ab553470085ab2edab283c01ae1d00e819..41c7206b8b4133a29ea9492a4a7ed59af5bc6f66 100644 (file)
@@ -1996,7 +1996,7 @@ func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
 <code>http.ResponseWriter</code>.)
 For reference, here's how to attach such a server to a node on the URL tree.
 <pre>
-import "http"
+import "net/http"
 ...
 ctr := new(Counter)
 http.Handle("/counter", ctr)
@@ -2925,12 +2925,13 @@ An explanation follows.
 
 import (
     &#34;flag&#34;
-    &#34;http&#34;
     &#34;log&#34;
-    &#34;template&#34;
+    &#34;net/http&#34;
+    &#34;text/template&#34;
 )
 
-var addr = flag.String(&#34;addr&#34;, &#34;:1718&#34;, &#34;http service address&#34;) // Q=17, R=18
+var // Q=17, R=18
+addr = flag.String(&#34;addr&#34;, &#34;:1718&#34;, &#34;http service address&#34;)
 
 var templ = template.Must(template.New(&#34;qr&#34;).Parse(templateStr))
 
index 842f026e1070eaf74e0b3965e01e82a3f4c60075..22e1c1d80a475537ff40fcbafdbbdc42c81b5d40 100644 (file)
@@ -1934,7 +1934,7 @@ func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
 <code>http.ResponseWriter</code>.)
 For reference, here's how to attach such a server to a node on the URL tree.
 <pre>
-import "http"
+import "net/http"
 ...
 ctr := new(Counter)
 http.Handle("/counter", ctr)
index ad752a093ea4ae1c73256f1d35670f600c0a42d0..c4c44f6b4032ad1a91900fa433a2ecbc53e93cbb 100755 (executable)
@@ -23,36 +23,6 @@ dirpat=$(echo $dirs C | awk '{
        }
 }')
 
-# Append old names of renamed packages. TODO: clean up after renaming.
-dirpat="$dirpat
-/^(asn1)$/
-/^(big)$/
-/^(cmath)$/
-/^(csv)$/
-/^(exec)$/
-/^(exp\/template\/html)$/
-/^(gob)$/
-/^(http)/
-/^(http\/cgi)$/
-/^(http\/fcgi)$/
-/^(http\/httptest)$/
-/^(http\/pprof)$/
-/^(json)$/
-/^(mail)$/
-/^(rand)$/
-/^(rpc)$/
-/^(scanner)$/
-/^(smtp)$/
-/^(syslog)$/
-/^(tabwriter)$/
-/^(url)$/
-/^(template)$/
-/^(template\/parse)$/
-/^(utf16)$/
-/^(utf8)$/
-/^(xml)$/
-"
-
 for dir in $dirs; do (
        cd $dir >/dev/null || exit 1
 
@@ -69,35 +39,6 @@ for dir in $dirs; do (
                awk "$dirpat" |
                grep -v "^$dir\$" |
                sed 's/$/.install/' |
-               # TODO: rename the dependencies for renamed directories.  TODO: clean up after renaming.
-               sed 's;^asn1.install$;encoding/asn1.install;
-               s;^big.install$;math/big.install;
-               s;^cmath.install$;math/cmplx.install;
-               s;^csv.install$;encoding/csv.install;
-               s;^exec.install$;os/exec.install;
-               s;^exp/template/html.install$;html/template.install;
-               s;^gob.install$;encoding/gob.install;
-               s;^http.install$;net/http.install;
-               s;^http/cgi.install$;net/http/cgi.install;
-               s;^http/fcgi.install$;net/http/fcgi.install;
-               s;^http/httptest.install$;net/http/httptest.install;
-               s;^http/pprof.install$;net/http/pprof.install;
-               s;^json.install$;encoding/json.install;
-               s;^mail.install$;net/mail.install;
-               s;^rpc.install$;net/rpc.install;
-               s;^rpc/jsonrpc.install$;net/rpc/jsonrpc.install;
-               s;^scanner.install$;text/scanner.install;
-               s;^smtp.install$;net/smtp.install;
-               s;^syslog.install$;log/syslog.install;
-               s;^tabwriter.install$;text/tabwriter.install;
-               s;^template.install$;text/template.install;
-               s;^template/parse.install$;text/template/parse.install;
-               s;^rand.install$;math/rand.install;
-               s;^url.install$;net/url.install;
-               s;^utf16.install$;unicode/utf16.install;
-               s;^utf8.install$;unicode/utf8.install;
-               s;^xml.install$;encoding/xml.install;' |
-               # TODO: end of renamings.
                sed 's;^C\.install;runtime/cgo.install;' |
                sort -u
        )
index 692c469878d948506a1de30e59c2ee2d61b2afa3..1c046dc3693628eb1dd8a8d15ea0953d7c2e79d9 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=asn1
+TARG=encoding/asn1
 GOFILES=\
        asn1.go\
        common.go\
index 7476d816a107680feacf2f882b4ae0f284fd5ae6..9e04c5b90d59962f3a4d067af15b4b00399626b3 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=csv
+TARG=encoding/csv
 GOFILES=\
        reader.go\
        writer.go\
index 70ea22f94b1fb8fb89b7d4dcadfe2274756fcd5a..6c7693cba36eb36d33f29fa745016dcf117725a1 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=gob
+TARG=encoding/gob
 GOFILES=\
        decode.go\
        decoder.go\
index 203cf3ca985bf835cb92d4524b3c7fe8cc44d5b9..37223e75e999778c6f38df30f844fc45e4e6b4e3 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=json
+TARG=encoding/json
 GOFILES=\
        decode.go\
        encode.go\
index 731d2ad9597f07900757d759abc1df4f38b4591b..dccb1009fd06f8d7b2ddd3826328928764ae2ebb 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=xml
+TARG=encoding/xml
 
 GOFILES=\
        marshal.go\
index 57f034614951955c7bbbda820c3ad55e115f48b3..d27601a33b49800f12cedb48d7ca81007515057a 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=exp/template/html
+TARG=html/template
 GOFILES=\
        attr.go\
        clone.go\
index 6a36c7b7181104a5feccc8f1a5f9db2e9dd20530..3ea02880d45a67536083e7ff4b2c805234a358ac 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "strings"
index 803a64de12fdc6e55927beffda13cdfad64f4749..d0d8ea46733f4aed2538603f619fec906c275f21 100644 (file)
@@ -2,10 +2,10 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
-       "template/parse"
+       "text/template/parse"
 )
 
 // clone clones a template Node.
index 9e557d288064b1c3ddd7708414b8b1cc04d5335b..ed1698acd8b646e8c36c25ca4a372e2477460ca5 100644 (file)
@@ -2,13 +2,13 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "bytes"
-       "template"
-       "template/parse"
        "testing"
+       "text/template"
+       "text/template/parse"
 )
 
 func TestClone(t *testing.T) {
index dcaff8c15c638adc08ba8c29f2aae6e551a4d645..d720d4ba6895df1e0a48463f38ad02bd76815ada 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "fmt"
index bee2ed1c1890dddbfa562ed26ca5dfd82587ec4c..c96a521a59c47e9e5ad9be547a11332f01213e47 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "bytes"
index c44df4debc1023e05e8e1b38f7253eb6dcdd7d53..7202221b831d8bc948f5874e8170eab09a30e396 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "fmt"
index c26ae78d17fb45f25fe3633f6960f3a8ab8adc6f..b0a2f013d2909b0b8e453e58b6eed459849b628c 100644 (file)
@@ -2,13 +2,13 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "bytes"
        "fmt"
        "unicode"
-       "utf8"
+       "unicode/utf8"
 )
 
 // endsWithCSSKeyword returns whether b ends with an ident that
index b3b83e855d3b47a66834b66196722eeca7295758..0d94bdcf18cda23dcc1473bee5fe459817f5469e 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "strconv"
index 8aca42f56b6473c8d02a438590ae69ee8b027a10..0324c9c0ee325115a08f85087de2b2d74d1e18eb 100644 (file)
@@ -3,8 +3,9 @@
 // license that can be found in the LICENSE file.
 
 /*
-Package html is a specialization of package template that automates the
-construction of HTML output that is safe against code injection.
+Package template (html/template) is a specialization of package text/template
+that automates the construction of HTML output that is safe against code
+injection.
 
 
 Introduction
@@ -182,4 +183,4 @@ Least Surprise Property
 knows that contextual autoescaping happens should be able to look at a {{.}}
 and correctly infer what sanitization happens."
 */
-package html
+package template
index cb2994bc8a17c928bba499516b88914a5c004f0c..9622d7e48eed8dff1547a2a6150a3728f5c9a74e 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "fmt"
index e8eae8f174b8a4e81b668b45c33ef3614b8de6c6..8ac07eae24c3fe029791e18577a14c201c1686b4 100644 (file)
@@ -2,14 +2,14 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "bytes"
        "fmt"
        "html"
-       "template"
-       "template/parse"
+       "text/template"
+       "text/template/parse"
 )
 
 // escape rewrites each action in the template to guarantee that the output is
index f705947a0e8d111985b8171defa4c259d91cf505..d8bfa321121020dd8d8e65bce99f56df4c41662c 100644 (file)
@@ -2,16 +2,16 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "bytes"
+       "encoding/json"
        "fmt"
-       "json"
        "strings"
-       "template"
-       "template/parse"
        "testing"
+       "text/template"
+       "text/template/parse"
 )
 
 type badMarshaler struct{}
@@ -224,7 +224,7 @@ func TestEscape(t *testing.T) {
                {
                        "badMarshaller",
                        `<button onclick='alert(1/{{.B}}in numbers)'>`,
-                       `<button onclick='alert(1/ /* json: error calling MarshalJSON for type *html.badMarshaler: invalid character &#39;f&#39; looking for beginning of object key string */null in numbers)'>`,
+                       `<button onclick='alert(1/ /* json: error calling MarshalJSON for type *template.badMarshaler: invalid character &#39;f&#39; looking for beginning of object key string */null in numbers)'>`,
                },
                {
                        "jsMarshaller",
index 92d8f419946477747b406466217be8a005c59daa..7b77d6531ab775807614ec11091732af8895da0f 100644 (file)
@@ -2,13 +2,13 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "bytes"
        "fmt"
        "strings"
-       "utf8"
+       "unicode/utf8"
 )
 
 // htmlNospaceEscaper escapes for inclusion in unquoted attribute values.
index e178d0f27e5f678764da08f8a5745f41de6b0682..b9b970387571e38265b60f687b16476646d57587 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "html"
index 22be4183d77d5737f82f21f2410231cf31de8598..68c53e5ca3b549484ae59368c190170ae64497d9 100644 (file)
@@ -2,14 +2,14 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "bytes"
+       "encoding/json"
        "fmt"
-       "json"
        "strings"
-       "utf8"
+       "unicode/utf8"
 )
 
 // nextJSCtx returns the context that determines whether a slash after the
index e7764054a35be6b62f105fc8600d0a6336e965eb..311e1d2c4ea2c1e7736e4a7b45e5c75edc8a2326 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "bytes"
index 04066ab40e5bc11f5b6eb989ecf211fba2e71a1a..47334299384bf9c7eedcf60b1c1a46486398bf91 100644 (file)
@@ -2,13 +2,13 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "fmt"
        "io"
        "path/filepath"
-       "template"
+       "text/template"
 )
 
 // Set is a specialized template.Set that produces a safe HTML document
index 49a14511745bd99599a07e9411c6cdc4d4fcbd8f..96a4f6678bc746483636afeee048a73e70fcd34f 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "bytes"
index 5b19df084049e6667e8b585c2250473728099eeb..454c791ec3123ca753e9cd5a05a9a72a744fe187 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "bytes"
index b84623151c7e408b5df85af43aa767fecf948852..5182e9d794386a99cab2c77b346adf6b88674fa9 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package html
+package template
 
 import (
        "testing"
index 27cdedb6f04e7494cfa072914b6fc3e1ee0aca3d..225307cf98a8edc01d0c7e9f70dc7a37a46cb539 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=syslog
+TARG=log/syslog
 GOFILES=\
        syslog.go\
        syslog_unix.go\
index 8e9f956dac984ce64033890624f8006571d069ef..1ba081812561df2d0ce8784236b44c17dfc728b7 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=big
+TARG=math/big
 GOFILES=\
        arith.go\
        arith_decl.go\
index c95b856826acf8da81064d02c528bdbd68582404..b6e8aa334e4f0ebb410b26de8525695c9a60359d 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=cmath
+TARG=math/cmplx
 
 GOFILES=\
        abs.go\
index f3199cad561e21c08a7c5ad84752f3dbcd66e168..f3cd1073ed27a1991839c0216e1432921b7ca4c2 100644 (file)
@@ -2,9 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Package cmath provides basic constants and mathematical functions for
+// Package cmplx provides basic constants and mathematical functions for
 // complex numbers.
-package cmath
+package cmplx
 
 import "math"
 
index 01ce80a194620981959a601d9085290196fac488..61880a257d49d340616f6427f5509ec1ad3b6faf 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package cmath
+package cmplx
 
 import "math"
 
index 6a595b0a60953f1a35a41f000d4dc343025d6646..610ca8cebb2fca06ecb7755a84006c6b0314eb42 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package cmath
+package cmplx
 
 import (
        "math"
index 776b57da7b7a5aaacf33f347ae91175149fe6525..34a4277c11746dcdd80b4edf5185ec3daf10c06a 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package cmath
+package cmplx
 
 // Conj returns the complex conjugate of x.
 func Conj(x complex128) complex128 { return complex(real(x), -imag(x)) }
index 64c1ef409399001d611b85761b8d33bae6a1ec03..485ed2c78d9a56b605e210d3981c2c703ca28fc6 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package cmath
+package cmplx
 
 import "math"
 
index f23d2dea7874a030c659b76c40020370a63267f6..d5a65b44b320c80da1500a4444907d4e2521c5a1 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package cmath
+package cmplx
 
 import "math"
 
index 2063bb8356619c854918c2ed1c80275268048960..05d0cce6335efaef250b2aa94713c442ecb2c08d 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package cmath
+package cmplx
 
 import "math"
 
index 8e6964fee89c010b01984977d86f508f83639101..881a064d8b8b1bf43bddfb5b1813bbd79aa67850 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package cmath
+package cmplx
 
 import "math"
 
index 2d67aa34c7ff7109cd93d14e6d871f799206c331..03cece8a570060aef8c1a0143a486f60c2fe6a86 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package cmath
+package cmplx
 
 import "math"
 
index 033676acc5f8fa23db28e3a081a1ca68d3f08694..9b192bc6240b4a79c64a9313dd778e9026a227c9 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package cmath
+package cmplx
 
 // Polar returns the absolute value r and phase θ of x,
 // such that x = r * e**θi.
index 68e1207c674719223eb1811d3dc329cb13402b45..4dbc58398b4c8fcc0eda62e2e5282b292f40b375 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package cmath
+package cmplx
 
 import "math"
 
index b955f0bf7d575c6e063dfb58688f3153b48f107e..bf94d787ea402966effccd155f49dd667355eb8e 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package cmath
+package cmplx
 
 import "math"
 
index 486b717877e036743c642a99a53b39ec7e3ce860..2c57536edfc8312c7f10c635484a0496de0398f0 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package cmath
+package cmplx
 
 import "math"
 
index 4e7e8050f944c32006147ddb1a53e60fa7286d47..179b5396abcc4bca5ad635ef0c098b7f25f04284 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package cmath
+package cmplx
 
 import "math"
 
index 67dc22ad0fd39b242440b1eac9c12411236e14ea..9485315d8d00dd45abbae5fc9ef4c4b9fe6e1154 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package cmath
+package cmplx
 
 import "math"
 
index 81c2d88c2b0cfef376ea24edb675e55d80cb99d1..d2903d59b37265770678b83e4e265d8a6f62b1a0 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=rand
+TARG=math/rand
 GOFILES=\
        exp.go\
        normal.go\
index 13705e73810a118615f717a376b2592adb647685..4bf33a629d41fae128f4168d16e595f363618dff 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=http
+TARG=net/http
 GOFILES=\
        chunked.go\
        client.go\
index fce7aed41bb31ba857464ac3bb01f770bbf60268..0d6be0180d5beea02411c16c4e07fbcdc8ee962e 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../../Make.inc
 
-TARG=http/cgi
+TARG=net/http/cgi
 GOFILES=\
        child.go\
        host.go\
index 65914361b9a058d57b5d999ed22cfb95e493516e..9a75f1a80c8d8af57d10a77d6a8690a4ea4d238f 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../../Make.inc
 
-TARG=http/fcgi
+TARG=net/http/fcgi
 GOFILES=\
        child.go\
        fcgi.go\
index 217cb9bbd6b33dea9b58f6569909ff5efebbb637..3bb445419ed37580b18fb6a58037acacd3851127 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../../Make.inc
 
-TARG=http/httptest
+TARG=net/http/httptest
 GOFILES=\
        recorder.go\
        server.go\
index 9b60273bf8fe9776e2178dec0a3deb907e11ae09..b78fce8e4122e6abb2fb78b116649643cec589e1 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../../Make.inc
 
-TARG=http/pprof
+TARG=net/http/pprof
 GOFILES=\
        pprof.go\
 
index 5ab8acfa1c8c477c885559fe34b0863add07fce0..acb1c2a6de1ad966f6341f6fe49af404ce7338f1 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=mail
+TARG=net/mail
 GOFILES=\
        message.go\
 
index b1872d6d0984ae72ce43cf8a62aa16ae6c50c39c..0e6c9846bf149762b58a51586f55ddfc8ab65208 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=rpc
+TARG=net/rpc
 GOFILES=\
        client.go\
        debug.go\
index 1bb2a0d0e3ee70d2e4291dda134aedb14c40df41..c5ea5373d8905674ac3bee04459a988ce1d54110 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../../Make.inc
 
-TARG=rpc/jsonrpc
+TARG=net/rpc/jsonrpc
 GOFILES=\
        client.go\
        server.go\
index 810f3ff9142e4bee48cd8aac38baf1d67dbd998f..d9812d5cb7e41def7fc5d77376e28e3d7505a6e3 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=smtp
+TARG=net/smtp
 GOFILES=\
        auth.go\
        smtp.go\
index f583cdf636caaa1cf02813b53701565f2e7a7373..bef0647a4b8ef798e8a3079de03e759eb4e3552b 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=url
+TARG=net/url
 GOFILES=\
        url.go\
 
index 702d6a38278670018e0f69353933cb020be6eb5b..ff86a58f552f8b07c06556b6adb1e655ee8d82c6 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=exec
+TARG=os/exec
 GOFILES=\
        exec.go\
 
index 6b6e075dfeb917a1b7b686471ab2352f8091f59d..c0f28dc9445332aae37431e30f35e70d3736c610 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=scanner
+TARG=text/scanner
 GOFILES=\
        scanner.go\
 
index 70ad25cea7defd5ab7f2fa45200f616e400b16d0..ba1bf579535dbe2a7cc04a346e7daf5d85e1996a 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=tabwriter
+TARG=text/tabwriter
 GOFILES=\
        tabwriter.go\
 
index 159b5a7c2fe41d57941707fcc6ae0073d244c0ab..3a3173d20878a04316a4b5d6825fa07cfddc0c74 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=template
+TARG=text/template
 GOFILES=\
        doc.go\
        exec.go\
index 39986b943cd5d672fd2c02362ba96cef7d0ea34c..72bb55064d2fab83318e5c1e49f1f502fcf3a3ac 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../../Make.inc
 
-TARG=template/parse
+TARG=text/template/parse
 GOFILES=\
        lex.go\
        node.go\
index b60a5e73161a1e6fc4e81d8ab041bfd4f420c475..f64b3c86edfcfe6b7b9b5e2d5c01c03c19529579 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=utf16
+TARG=unicode/utf16
 GOFILES=\
        utf16.go\
 
index 4ffc31f08a83e2b0a109dd672253385c514e2e50..9863433b02128b60d7f10e580d1533addc893196 100644 (file)
@@ -4,7 +4,7 @@
 
 include ../../../Make.inc
 
-TARG=utf8
+TARG=unicode/utf8
 GOFILES=\
        string.go\
        utf8.go\
index f43709b7e2567a4f84e58b00dbadb97351cddb9c..82fbf7f8150f376cef4ebe923a2f64ddcbc738f5 100644 (file)
@@ -10,8 +10,8 @@
 package main
 
 import (
-       "http"
        "io/ioutil"     // GCCGO_ERROR "imported and not used"
+       "net/http"
        "os"
 )