diff options
author | Russ Cox <rsc@golang.org> | 2009-08-12 13:19:17 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-08-12 13:19:17 -0700 |
commit | 2ee4549f599ed214693abf75163176f178b4188c (patch) | |
tree | c9dbc55a8447806706f8ae757a04c3c41b815835 /src/pkg/http | |
parent | 5ff5b6823c8a023da5c9d6ccc2effe7fad8447f6 (diff) | |
download | golang-2ee4549f599ed214693abf75163176f178b4188c.tar.gz |
convert non-low-level non-google pkg code
to whole-package compilation.
R=r
OCL=33070
CL=33101
Diffstat (limited to 'src/pkg/http')
-rw-r--r-- | src/pkg/http/Makefile | 88 | ||||
-rw-r--r-- | src/pkg/http/client.go | 1 | ||||
-rw-r--r-- | src/pkg/http/client_test.go | 1 | ||||
-rw-r--r-- | src/pkg/http/fs.go | 1 | ||||
-rw-r--r-- | src/pkg/http/request.go | 1 | ||||
-rw-r--r-- | src/pkg/http/request_test.go | 1 | ||||
-rw-r--r-- | src/pkg/http/server.go | 4 | ||||
-rw-r--r-- | src/pkg/http/triv.go | 1 | ||||
-rw-r--r-- | src/pkg/http/url_test.go | 3 |
9 files changed, 10 insertions, 91 deletions
diff --git a/src/pkg/http/Makefile b/src/pkg/http/Makefile index 34445b577..974067882 100644 --- a/src/pkg/http/Makefile +++ b/src/pkg/http/Makefile @@ -2,85 +2,15 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. -# DO NOT EDIT. Automatically generated by gobuild. -# gobuild -m >Makefile - -D= - include $(GOROOT)/src/Make.$(GOARCH) -AR=gopack - -default: packages - -clean: - rm -rf *.[$(OS)] *.a [$(OS)].out _obj - -test: packages - gotest - -coverage: packages - gotest - 6cov -g `pwd` | grep -v '_test\.go:' - -%.$O: %.go - $(GC) -I_obj $*.go - -%.$O: %.c - $(CC) $*.c - -%.$O: %.s - $(AS) $*.s - -O1=\ - status.$O\ - url.$O\ - -O2=\ - request.$O\ - -O3=\ - client.$O\ - server.$O\ - -O4=\ - fs.$O\ - - -phases: a1 a2 a3 a4 -_obj$D/http.a: phases - -a1: $(O1) - $(AR) grc _obj$D/http.a status.$O url.$O - rm -f $(O1) - -a2: $(O2) - $(AR) grc _obj$D/http.a request.$O - rm -f $(O2) - -a3: $(O3) - $(AR) grc _obj$D/http.a client.$O server.$O - rm -f $(O3) - -a4: $(O4) - $(AR) grc _obj$D/http.a fs.$O - rm -f $(O4) - - -newpkg: clean - mkdir -p _obj$D - $(AR) grc _obj$D/http.a - -$(O1): newpkg -$(O2): a1 -$(O3): a2 -$(O4): a3 -$(O5): a4 - -nuke: clean - rm -f $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/http.a -packages: _obj$D/http.a +TARG=http +GOFILES=\ + client.go\ + fs.go\ + request.go\ + server.go\ + status.go\ + url.go\ -install: packages - test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D - cp _obj$D/http.a $(GOROOT)/pkg/$(GOOS)_$(GOARCH)$D/http.a +include $(GOROOT)/src/Make.pkg diff --git a/src/pkg/http/client.go b/src/pkg/http/client.go index 197f6c858..839241d33 100644 --- a/src/pkg/http/client.go +++ b/src/pkg/http/client.go @@ -9,7 +9,6 @@ package http import ( "bufio"; "fmt"; - "http"; "io"; "log"; "net"; diff --git a/src/pkg/http/client_test.go b/src/pkg/http/client_test.go index f697fb856..69938f030 100644 --- a/src/pkg/http/client_test.go +++ b/src/pkg/http/client_test.go @@ -8,7 +8,6 @@ package http import ( "fmt"; - "http"; "io"; "strings"; "testing"; diff --git a/src/pkg/http/fs.go b/src/pkg/http/fs.go index 6af85ca03..e8dda1d30 100644 --- a/src/pkg/http/fs.go +++ b/src/pkg/http/fs.go @@ -8,7 +8,6 @@ package http import ( "fmt"; - "http"; "io"; "os"; "path"; diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go index 0cc83a8b8..15dc15c1e 100644 --- a/src/pkg/http/request.go +++ b/src/pkg/http/request.go @@ -14,7 +14,6 @@ import ( "bytes"; "container/vector"; "fmt"; - "http"; "io"; "os"; "strconv"; diff --git a/src/pkg/http/request_test.go b/src/pkg/http/request_test.go index 1cd91717d..86ec0efac 100644 --- a/src/pkg/http/request_test.go +++ b/src/pkg/http/request_test.go @@ -6,7 +6,6 @@ package http import ( "fmt"; - "http"; "os"; "testing"; ) diff --git a/src/pkg/http/server.go b/src/pkg/http/server.go index c1de5de78..47f7d01e7 100644 --- a/src/pkg/http/server.go +++ b/src/pkg/http/server.go @@ -14,7 +14,6 @@ package http import ( "bufio"; "fmt"; - "http"; "io"; "log"; "net"; @@ -70,8 +69,6 @@ func newConn(rwc io.ReadWriteCloser, raddr string, handler Handler) (c *Conn, er return c, nil } -func (c *Conn) SetHeader(hdr, val string) - // Read next request from connection. func (c *Conn) readRequest() (req *Request, err os.Error) { if c.hijacked { @@ -547,7 +544,6 @@ func Serve(l net.Listener, handler Handler) os.Error { // package main // // import ( -// "http"; // "io"; // ) // diff --git a/src/pkg/http/triv.go b/src/pkg/http/triv.go index 546f2a75d..7b7484d3b 100644 --- a/src/pkg/http/triv.go +++ b/src/pkg/http/triv.go @@ -10,7 +10,6 @@ import ( "exvar"; "flag"; "fmt"; - "http"; "io"; "log"; "net"; diff --git a/src/pkg/http/url_test.go b/src/pkg/http/url_test.go index 51d0283fe..6a3cdb0c5 100644 --- a/src/pkg/http/url_test.go +++ b/src/pkg/http/url_test.go @@ -6,7 +6,6 @@ package http import ( "fmt"; - "http"; "os"; "reflect"; "testing"; @@ -14,7 +13,7 @@ import ( // TODO(rsc): // test URLUnescape -// test URLEscape +// test URLEscape // test ParseURL type URLTest struct { |