From 9cee8be7106349f4b0c09dd5a1f46247bc1bd8d8 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Sun, 23 Sep 2012 18:12:34 -0700 Subject: [PATCH] trim --- 067-http-client-basic/http-client-basic.go | 18 ------------------ .../https-client.go | 0 {069-redis => 068-redis}/redis.go | 0 {069-redis => 068-redis}/redis.sh | 0 {070-postgres => 069-postgres}/postgres.go | 0 {070-postgres => 069-postgres}/postgres.sh | 0 .../sending-email.go | 0 {072-hello-web => 071-hello-web}/hello-web.go | 0 {073-responses => 072-responses}/responses.go | 0 {073-responses => 072-responses}/responses.sh | 0 .../request-routing.go | 0 .../request-routing.sh | 0 .../request-logging.go | 0 .../static-content.go | 0 .../static-content.sh | 0 .../basic-authentication.go | 0 .../canonical-hosts.go | 0 .../canonical-hosts.sh | 0 .../middleware.go | 0 .../graceful-shutdown.go | 0 .../graceful-shutdown.sh | 0 tool/index.txt | 1 - 22 files changed, 19 deletions(-) delete mode 100644 067-http-client-basic/http-client-basic.go rename {068-https-client => 067-https-client}/https-client.go (100%) rename {069-redis => 068-redis}/redis.go (100%) rename {069-redis => 068-redis}/redis.sh (100%) rename {070-postgres => 069-postgres}/postgres.go (100%) rename {070-postgres => 069-postgres}/postgres.sh (100%) rename {071-sending-email => 070-sending-email}/sending-email.go (100%) rename {072-hello-web => 071-hello-web}/hello-web.go (100%) rename {073-responses => 072-responses}/responses.go (100%) rename {073-responses => 072-responses}/responses.sh (100%) rename {074-request-routing => 073-request-routing}/request-routing.go (100%) rename {074-request-routing => 073-request-routing}/request-routing.sh (100%) rename {075-request-logging => 074-request-logging}/request-logging.go (100%) rename {076-static-content => 075-static-content}/static-content.go (100%) rename {076-static-content => 075-static-content}/static-content.sh (100%) rename {077-basic-authentication => 076-basic-authentication}/basic-authentication.go (100%) rename {078-canonical-hosts => 077-canonical-hosts}/canonical-hosts.go (100%) rename {078-canonical-hosts => 077-canonical-hosts}/canonical-hosts.sh (100%) rename {079-middleware => 078-middleware}/middleware.go (100%) rename {080-graceful-shutdown => 079-graceful-shutdown}/graceful-shutdown.go (100%) rename {080-graceful-shutdown => 079-graceful-shutdown}/graceful-shutdown.sh (100%) diff --git a/067-http-client-basic/http-client-basic.go b/067-http-client-basic/http-client-basic.go deleted file mode 100644 index 06531cc..0000000 --- a/067-http-client-basic/http-client-basic.go +++ /dev/null @@ -1,18 +0,0 @@ -// ## HTTP Client Basic Auth - -package main - -import "net/http" -import "io/ioutil" -import "fmt" - -func main() { - req, _ := http.NewRequest("GET", "http://127.0.0.1:5000/", nil) - req.SetBasicAuth("u", "supersecret") - res, resErr := http.DefaultClient.Do(req) - if resErr != nil { panic(resErr) } - defer res.Body.Close() - body, bodyErr := ioutil.ReadAll(res.Body) - if bodyErr != nil { panic(bodyErr) } - fmt.Print(string(body)) -} diff --git a/068-https-client/https-client.go b/067-https-client/https-client.go similarity index 100% rename from 068-https-client/https-client.go rename to 067-https-client/https-client.go diff --git a/069-redis/redis.go b/068-redis/redis.go similarity index 100% rename from 069-redis/redis.go rename to 068-redis/redis.go diff --git a/069-redis/redis.sh b/068-redis/redis.sh similarity index 100% rename from 069-redis/redis.sh rename to 068-redis/redis.sh diff --git a/070-postgres/postgres.go b/069-postgres/postgres.go similarity index 100% rename from 070-postgres/postgres.go rename to 069-postgres/postgres.go diff --git a/070-postgres/postgres.sh b/069-postgres/postgres.sh similarity index 100% rename from 070-postgres/postgres.sh rename to 069-postgres/postgres.sh diff --git a/071-sending-email/sending-email.go b/070-sending-email/sending-email.go similarity index 100% rename from 071-sending-email/sending-email.go rename to 070-sending-email/sending-email.go diff --git a/072-hello-web/hello-web.go b/071-hello-web/hello-web.go similarity index 100% rename from 072-hello-web/hello-web.go rename to 071-hello-web/hello-web.go diff --git a/073-responses/responses.go b/072-responses/responses.go similarity index 100% rename from 073-responses/responses.go rename to 072-responses/responses.go diff --git a/073-responses/responses.sh b/072-responses/responses.sh similarity index 100% rename from 073-responses/responses.sh rename to 072-responses/responses.sh diff --git a/074-request-routing/request-routing.go b/073-request-routing/request-routing.go similarity index 100% rename from 074-request-routing/request-routing.go rename to 073-request-routing/request-routing.go diff --git a/074-request-routing/request-routing.sh b/073-request-routing/request-routing.sh similarity index 100% rename from 074-request-routing/request-routing.sh rename to 073-request-routing/request-routing.sh diff --git a/075-request-logging/request-logging.go b/074-request-logging/request-logging.go similarity index 100% rename from 075-request-logging/request-logging.go rename to 074-request-logging/request-logging.go diff --git a/076-static-content/static-content.go b/075-static-content/static-content.go similarity index 100% rename from 076-static-content/static-content.go rename to 075-static-content/static-content.go diff --git a/076-static-content/static-content.sh b/075-static-content/static-content.sh similarity index 100% rename from 076-static-content/static-content.sh rename to 075-static-content/static-content.sh diff --git a/077-basic-authentication/basic-authentication.go b/076-basic-authentication/basic-authentication.go similarity index 100% rename from 077-basic-authentication/basic-authentication.go rename to 076-basic-authentication/basic-authentication.go diff --git a/078-canonical-hosts/canonical-hosts.go b/077-canonical-hosts/canonical-hosts.go similarity index 100% rename from 078-canonical-hosts/canonical-hosts.go rename to 077-canonical-hosts/canonical-hosts.go diff --git a/078-canonical-hosts/canonical-hosts.sh b/077-canonical-hosts/canonical-hosts.sh similarity index 100% rename from 078-canonical-hosts/canonical-hosts.sh rename to 077-canonical-hosts/canonical-hosts.sh diff --git a/079-middleware/middleware.go b/078-middleware/middleware.go similarity index 100% rename from 079-middleware/middleware.go rename to 078-middleware/middleware.go diff --git a/080-graceful-shutdown/graceful-shutdown.go b/079-graceful-shutdown/graceful-shutdown.go similarity index 100% rename from 080-graceful-shutdown/graceful-shutdown.go rename to 079-graceful-shutdown/graceful-shutdown.go diff --git a/080-graceful-shutdown/graceful-shutdown.sh b/079-graceful-shutdown/graceful-shutdown.sh similarity index 100% rename from 080-graceful-shutdown/graceful-shutdown.sh rename to 079-graceful-shutdown/graceful-shutdown.sh diff --git a/tool/index.txt b/tool/index.txt index 6f451c5..e142bac 100644 --- a/tool/index.txt +++ b/tool/index.txt @@ -84,7 +84,6 @@ exit ## client libraries http-client -http-client-basic https-client streaming-in-http-responses ~ redis