mirror of
https://github.com/golang/go
synced 2024-11-22 03:24:41 -07:00
renaming_1: hand-edited files for go 1 renaming
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
This commit is contained in:
parent
e50479ca88
commit
6ab6c49fce
@ -1996,7 +1996,7 @@ func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
|||||||
<code>http.ResponseWriter</code>.)
|
<code>http.ResponseWriter</code>.)
|
||||||
For reference, here's how to attach such a server to a node on the URL tree.
|
For reference, here's how to attach such a server to a node on the URL tree.
|
||||||
<pre>
|
<pre>
|
||||||
import "http"
|
import "net/http"
|
||||||
...
|
...
|
||||||
ctr := new(Counter)
|
ctr := new(Counter)
|
||||||
http.Handle("/counter", ctr)
|
http.Handle("/counter", ctr)
|
||||||
@ -2925,12 +2925,13 @@ An explanation follows.
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"http"
|
|
||||||
"log"
|
"log"
|
||||||
"template"
|
"net/http"
|
||||||
|
"text/template"
|
||||||
)
|
)
|
||||||
|
|
||||||
var addr = flag.String("addr", ":1718", "http service address") // Q=17, R=18
|
var // Q=17, R=18
|
||||||
|
addr = flag.String("addr", ":1718", "http service address")
|
||||||
|
|
||||||
var templ = template.Must(template.New("qr").Parse(templateStr))
|
var templ = template.Must(template.New("qr").Parse(templateStr))
|
||||||
|
|
||||||
|
@ -1934,7 +1934,7 @@ func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
|||||||
<code>http.ResponseWriter</code>.)
|
<code>http.ResponseWriter</code>.)
|
||||||
For reference, here's how to attach such a server to a node on the URL tree.
|
For reference, here's how to attach such a server to a node on the URL tree.
|
||||||
<pre>
|
<pre>
|
||||||
import "http"
|
import "net/http"
|
||||||
...
|
...
|
||||||
ctr := new(Counter)
|
ctr := new(Counter)
|
||||||
http.Handle("/counter", ctr)
|
http.Handle("/counter", ctr)
|
||||||
|
@ -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 (
|
for dir in $dirs; do (
|
||||||
cd $dir >/dev/null || exit 1
|
cd $dir >/dev/null || exit 1
|
||||||
|
|
||||||
@ -69,35 +39,6 @@ for dir in $dirs; do (
|
|||||||
awk "$dirpat" |
|
awk "$dirpat" |
|
||||||
grep -v "^$dir\$" |
|
grep -v "^$dir\$" |
|
||||||
sed 's/$/.install/' |
|
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;' |
|
sed 's;^C\.install;runtime/cgo.install;' |
|
||||||
sort -u
|
sort -u
|
||||||
)
|
)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=asn1
|
TARG=encoding/asn1
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
asn1.go\
|
asn1.go\
|
||||||
common.go\
|
common.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=csv
|
TARG=encoding/csv
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
reader.go\
|
reader.go\
|
||||||
writer.go\
|
writer.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=gob
|
TARG=encoding/gob
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
decode.go\
|
decode.go\
|
||||||
decoder.go\
|
decoder.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=json
|
TARG=encoding/json
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
decode.go\
|
decode.go\
|
||||||
encode.go\
|
encode.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=xml
|
TARG=encoding/xml
|
||||||
|
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
marshal.go\
|
marshal.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=exp/template/html
|
TARG=html/template
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
attr.go\
|
attr.go\
|
||||||
clone.go\
|
clone.go\
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"template/parse"
|
"text/template/parse"
|
||||||
)
|
)
|
||||||
|
|
||||||
// clone clones a template Node.
|
// clone clones a template Node.
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"template"
|
|
||||||
"template/parse"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
"text/template"
|
||||||
|
"text/template/parse"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestClone(t *testing.T) {
|
func TestClone(t *testing.T) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"unicode"
|
"unicode"
|
||||||
"utf8"
|
"unicode/utf8"
|
||||||
)
|
)
|
||||||
|
|
||||||
// endsWithCSSKeyword returns whether b ends with an ident that
|
// endsWithCSSKeyword returns whether b ends with an ident that
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -3,8 +3,9 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Package html is a specialization of package template that automates the
|
Package template (html/template) is a specialization of package text/template
|
||||||
construction of HTML output that is safe against code injection.
|
that automates the construction of HTML output that is safe against code
|
||||||
|
injection.
|
||||||
|
|
||||||
|
|
||||||
Introduction
|
Introduction
|
||||||
@ -182,4 +183,4 @@ Least Surprise Property
|
|||||||
knows that contextual autoescaping happens should be able to look at a {{.}}
|
knows that contextual autoescaping happens should be able to look at a {{.}}
|
||||||
and correctly infer what sanitization happens."
|
and correctly infer what sanitization happens."
|
||||||
*/
|
*/
|
||||||
package html
|
package template
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"html"
|
"html"
|
||||||
"template"
|
"text/template"
|
||||||
"template/parse"
|
"text/template/parse"
|
||||||
)
|
)
|
||||||
|
|
||||||
// escape rewrites each action in the template to guarantee that the output is
|
// escape rewrites each action in the template to guarantee that the output is
|
||||||
|
@ -2,16 +2,16 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"json"
|
|
||||||
"strings"
|
"strings"
|
||||||
"template"
|
|
||||||
"template/parse"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
"text/template"
|
||||||
|
"text/template/parse"
|
||||||
)
|
)
|
||||||
|
|
||||||
type badMarshaler struct{}
|
type badMarshaler struct{}
|
||||||
@ -224,7 +224,7 @@ func TestEscape(t *testing.T) {
|
|||||||
{
|
{
|
||||||
"badMarshaller",
|
"badMarshaller",
|
||||||
`<button onclick='alert(1/{{.B}}in numbers)'>`,
|
`<button onclick='alert(1/{{.B}}in numbers)'>`,
|
||||||
`<button onclick='alert(1/ /* json: error calling MarshalJSON for type *html.badMarshaler: invalid character 'f' looking for beginning of object key string */null in numbers)'>`,
|
`<button onclick='alert(1/ /* json: error calling MarshalJSON for type *template.badMarshaler: invalid character 'f' looking for beginning of object key string */null in numbers)'>`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"jsMarshaller",
|
"jsMarshaller",
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
"utf8"
|
"unicode/utf8"
|
||||||
)
|
)
|
||||||
|
|
||||||
// htmlNospaceEscaper escapes for inclusion in unquoted attribute values.
|
// htmlNospaceEscaper escapes for inclusion in unquoted attribute values.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"html"
|
"html"
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"json"
|
|
||||||
"strings"
|
"strings"
|
||||||
"utf8"
|
"unicode/utf8"
|
||||||
)
|
)
|
||||||
|
|
||||||
// nextJSCtx returns the context that determines whether a slash after the
|
// nextJSCtx returns the context that determines whether a slash after the
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"template"
|
"text/template"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Set is a specialized template.Set that produces a safe HTML document
|
// Set is a specialized template.Set that produces a safe HTML document
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package html
|
package template
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=syslog
|
TARG=log/syslog
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
syslog.go\
|
syslog.go\
|
||||||
syslog_unix.go\
|
syslog_unix.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=big
|
TARG=math/big
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
arith.go\
|
arith.go\
|
||||||
arith_decl.go\
|
arith_decl.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=cmath
|
TARG=math/cmplx
|
||||||
|
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
abs.go\
|
abs.go\
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// 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.
|
// complex numbers.
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
import "math"
|
import "math"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
import "math"
|
import "math"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"math"
|
"math"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
// Conj returns the complex conjugate of x.
|
// Conj returns the complex conjugate of x.
|
||||||
func Conj(x complex128) complex128 { return complex(real(x), -imag(x)) }
|
func Conj(x complex128) complex128 { return complex(real(x), -imag(x)) }
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
import "math"
|
import "math"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
import "math"
|
import "math"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
import "math"
|
import "math"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
import "math"
|
import "math"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
import "math"
|
import "math"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
// Polar returns the absolute value r and phase θ of x,
|
// Polar returns the absolute value r and phase θ of x,
|
||||||
// such that x = r * e**θi.
|
// such that x = r * e**θi.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
import "math"
|
import "math"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
import "math"
|
import "math"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
import "math"
|
import "math"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
import "math"
|
import "math"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package cmath
|
package cmplx
|
||||||
|
|
||||||
import "math"
|
import "math"
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=rand
|
TARG=math/rand
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
exp.go\
|
exp.go\
|
||||||
normal.go\
|
normal.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=http
|
TARG=net/http
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
chunked.go\
|
chunked.go\
|
||||||
client.go\
|
client.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../../Make.inc
|
include ../../../../Make.inc
|
||||||
|
|
||||||
TARG=http/cgi
|
TARG=net/http/cgi
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
child.go\
|
child.go\
|
||||||
host.go\
|
host.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../../Make.inc
|
include ../../../../Make.inc
|
||||||
|
|
||||||
TARG=http/fcgi
|
TARG=net/http/fcgi
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
child.go\
|
child.go\
|
||||||
fcgi.go\
|
fcgi.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../../Make.inc
|
include ../../../../Make.inc
|
||||||
|
|
||||||
TARG=http/httptest
|
TARG=net/http/httptest
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
recorder.go\
|
recorder.go\
|
||||||
server.go\
|
server.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../../Make.inc
|
include ../../../../Make.inc
|
||||||
|
|
||||||
TARG=http/pprof
|
TARG=net/http/pprof
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
pprof.go\
|
pprof.go\
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=mail
|
TARG=net/mail
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
message.go\
|
message.go\
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=rpc
|
TARG=net/rpc
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
client.go\
|
client.go\
|
||||||
debug.go\
|
debug.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../../Make.inc
|
include ../../../../Make.inc
|
||||||
|
|
||||||
TARG=rpc/jsonrpc
|
TARG=net/rpc/jsonrpc
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
client.go\
|
client.go\
|
||||||
server.go\
|
server.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=smtp
|
TARG=net/smtp
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
auth.go\
|
auth.go\
|
||||||
smtp.go\
|
smtp.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=url
|
TARG=net/url
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
url.go\
|
url.go\
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=exec
|
TARG=os/exec
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
exec.go\
|
exec.go\
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=scanner
|
TARG=text/scanner
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
scanner.go\
|
scanner.go\
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=tabwriter
|
TARG=text/tabwriter
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
tabwriter.go\
|
tabwriter.go\
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=template
|
TARG=text/template
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
doc.go\
|
doc.go\
|
||||||
exec.go\
|
exec.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../../Make.inc
|
include ../../../../Make.inc
|
||||||
|
|
||||||
TARG=template/parse
|
TARG=text/template/parse
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
lex.go\
|
lex.go\
|
||||||
node.go\
|
node.go\
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=utf16
|
TARG=unicode/utf16
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
utf16.go\
|
utf16.go\
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
include ../../../Make.inc
|
include ../../../Make.inc
|
||||||
|
|
||||||
TARG=utf8
|
TARG=unicode/utf8
|
||||||
GOFILES=\
|
GOFILES=\
|
||||||
string.go\
|
string.go\
|
||||||
utf8.go\
|
utf8.go\
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"http"
|
|
||||||
"io/ioutil" // GCCGO_ERROR "imported and not used"
|
"io/ioutil" // GCCGO_ERROR "imported and not used"
|
||||||
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user