From 74936129fb6e6507457c38a4cb6abc68eb59fc15 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Sun, 30 Sep 2012 19:55:40 -0700 Subject: [PATCH] fix up numberer --- .../state-goroutine.go | 0 src/{041-sorting => 042-sorting}/sorting.go | 0 src/{041-sorting => 042-sorting}/sorting.sh | 0 .../sorting-by-functions.go | 0 .../sorting-by-functions.sh | 0 .../collection-functions.go | 0 .../string-functions.go | 0 .../string-formatting.go | 0 .../string-formatting.sh | 0 src/{046-regexs => 047-regexs}/regexs.go | 0 src/{046-regexs => 047-regexs}/regexs.sh | 0 src/{047-bytes => 048-bytes}/bytes.go | 0 src/{048-json => 049-json}/json.go | 0 src/{049-time => 050-time}/time.go | 0 src/{049-time => 050-time}/time.sh | 0 src/{050-epochs => 051-epochs}/epochs.go | 0 src/{050-epochs => 051-epochs}/epochs.sh | 0 src/{051-elapsed-time => 052-elapsed-time}/elapsed-time.go | 0 .../random-numbers.go | 0 .../random-numbers.sh | 0 .../number-parsing.go | 0 .../number-parsing.sh | 0 src/{054-urls => 055-urls}/urls.go | 0 src/{054-urls => 055-urls}/urls.sh | 0 src/{082-sha1-hashes => 056-sha1-hashes}/sha1-hashes.go | 0 src/{082-sha1-hashes => 056-sha1-hashes}/sha1-hashes.sh | 0 src/{056-reading-files => 057-reading-files}/reading-files.go | 0 src/{057-writing-files => 058-writing-files}/writing-files.go | 0 src/{058-line-filters => 059-line-filters}/line-filters.go | 0 src/{058-line-filters => 059-line-filters}/line-filters.sh | 0 .../command-line-arguments.go | 0 .../command-line-arguments.sh | 0 .../command-line-flags.go | 0 .../environment-variables.go | 0 .../environment-variables.sh | 0 .../spawning-processes.go | 0 .../spawning-processes.sh | 0 .../execing-processes.go | 0 src/{064-signals => 065-signals}/signals.go | 0 src/{064-signals => 065-signals}/signals.sh | 0 src/{065-exit => 066-exit}/exit.go | 0 src/{065-exit => 066-exit}/exit.sh | 0 src/{066-http-client => 067-http-client}/http-client.go | 0 src/{067-https-client => 068-https-client}/https-client.go | 0 src/{068-redis => 069-redis}/redis.go | 0 src/{068-redis => 069-redis}/redis.sh | 0 src/{069-postgres => 070-postgres}/postgres.go | 0 src/{069-postgres => 070-postgres}/postgres.sh | 0 src/{070-sending-email => 071-sending-email}/sending-email.go | 0 src/{071-hello-web => 072-hello-web}/hello-web.go | 0 src/{072-responses => 073-responses}/responses.go | 0 src/{072-responses => 073-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 src/{078-middleware => 079-middleware}/middleware.go | 0 .../graceful-shutdown.go | 0 .../graceful-shutdown.sh | 0 src/{084-https-servers => 081-https-servers}/https-servers.go | 0 src/{084-https-servers => 081-https-servers}/https-servers.sh | 0 tool/number.go | 2 +- 66 files changed, 1 insertion(+), 1 deletion(-) rename src/{000-state-goroutine => 041-state-goroutine}/state-goroutine.go (100%) rename src/{041-sorting => 042-sorting}/sorting.go (100%) rename src/{041-sorting => 042-sorting}/sorting.sh (100%) rename src/{042-sorting-by-functions => 043-sorting-by-functions}/sorting-by-functions.go (100%) rename src/{042-sorting-by-functions => 043-sorting-by-functions}/sorting-by-functions.sh (100%) rename src/{043-collection-functions => 044-collection-functions}/collection-functions.go (100%) rename src/{044-string-functions => 045-string-functions}/string-functions.go (100%) rename src/{045-string-formatting => 046-string-formatting}/string-formatting.go (100%) rename src/{045-string-formatting => 046-string-formatting}/string-formatting.sh (100%) rename src/{046-regexs => 047-regexs}/regexs.go (100%) rename src/{046-regexs => 047-regexs}/regexs.sh (100%) rename src/{047-bytes => 048-bytes}/bytes.go (100%) rename src/{048-json => 049-json}/json.go (100%) rename src/{049-time => 050-time}/time.go (100%) rename src/{049-time => 050-time}/time.sh (100%) rename src/{050-epochs => 051-epochs}/epochs.go (100%) rename src/{050-epochs => 051-epochs}/epochs.sh (100%) rename src/{051-elapsed-time => 052-elapsed-time}/elapsed-time.go (100%) rename src/{052-random-numbers => 053-random-numbers}/random-numbers.go (100%) rename src/{052-random-numbers => 053-random-numbers}/random-numbers.sh (100%) rename src/{053-number-parsing => 054-number-parsing}/number-parsing.go (100%) rename src/{053-number-parsing => 054-number-parsing}/number-parsing.sh (100%) rename src/{054-urls => 055-urls}/urls.go (100%) rename src/{054-urls => 055-urls}/urls.sh (100%) rename src/{082-sha1-hashes => 056-sha1-hashes}/sha1-hashes.go (100%) rename src/{082-sha1-hashes => 056-sha1-hashes}/sha1-hashes.sh (100%) rename src/{056-reading-files => 057-reading-files}/reading-files.go (100%) rename src/{057-writing-files => 058-writing-files}/writing-files.go (100%) rename src/{058-line-filters => 059-line-filters}/line-filters.go (100%) rename src/{058-line-filters => 059-line-filters}/line-filters.sh (100%) rename src/{059-command-line-arguments => 060-command-line-arguments}/command-line-arguments.go (100%) rename src/{059-command-line-arguments => 060-command-line-arguments}/command-line-arguments.sh (100%) rename src/{060-command-line-flags => 061-command-line-flags}/command-line-flags.go (100%) rename src/{061-environment-variables => 062-environment-variables}/environment-variables.go (100%) rename src/{061-environment-variables => 062-environment-variables}/environment-variables.sh (100%) rename src/{062-spawning-processes => 063-spawning-processes}/spawning-processes.go (100%) rename src/{062-spawning-processes => 063-spawning-processes}/spawning-processes.sh (100%) rename src/{063-execing-processes => 064-execing-processes}/execing-processes.go (100%) rename src/{064-signals => 065-signals}/signals.go (100%) rename src/{064-signals => 065-signals}/signals.sh (100%) rename src/{065-exit => 066-exit}/exit.go (100%) rename src/{065-exit => 066-exit}/exit.sh (100%) rename src/{066-http-client => 067-http-client}/http-client.go (100%) rename src/{067-https-client => 068-https-client}/https-client.go (100%) rename src/{068-redis => 069-redis}/redis.go (100%) rename src/{068-redis => 069-redis}/redis.sh (100%) rename src/{069-postgres => 070-postgres}/postgres.go (100%) rename src/{069-postgres => 070-postgres}/postgres.sh (100%) rename src/{070-sending-email => 071-sending-email}/sending-email.go (100%) rename src/{071-hello-web => 072-hello-web}/hello-web.go (100%) rename src/{072-responses => 073-responses}/responses.go (100%) rename src/{072-responses => 073-responses}/responses.sh (100%) rename src/{073-request-routing => 074-request-routing}/request-routing.go (100%) rename src/{073-request-routing => 074-request-routing}/request-routing.sh (100%) rename src/{074-request-logging => 075-request-logging}/request-logging.go (100%) rename src/{075-static-content => 076-static-content}/static-content.go (100%) rename src/{075-static-content => 076-static-content}/static-content.sh (100%) rename src/{076-basic-authentication => 077-basic-authentication}/basic-authentication.go (100%) rename src/{077-canonical-hosts => 078-canonical-hosts}/canonical-hosts.go (100%) rename src/{077-canonical-hosts => 078-canonical-hosts}/canonical-hosts.sh (100%) rename src/{078-middleware => 079-middleware}/middleware.go (100%) rename src/{079-graceful-shutdown => 080-graceful-shutdown}/graceful-shutdown.go (100%) rename src/{079-graceful-shutdown => 080-graceful-shutdown}/graceful-shutdown.sh (100%) rename src/{084-https-servers => 081-https-servers}/https-servers.go (100%) rename src/{084-https-servers => 081-https-servers}/https-servers.sh (100%) diff --git a/src/000-state-goroutine/state-goroutine.go b/src/041-state-goroutine/state-goroutine.go similarity index 100% rename from src/000-state-goroutine/state-goroutine.go rename to src/041-state-goroutine/state-goroutine.go diff --git a/src/041-sorting/sorting.go b/src/042-sorting/sorting.go similarity index 100% rename from src/041-sorting/sorting.go rename to src/042-sorting/sorting.go diff --git a/src/041-sorting/sorting.sh b/src/042-sorting/sorting.sh similarity index 100% rename from src/041-sorting/sorting.sh rename to src/042-sorting/sorting.sh diff --git a/src/042-sorting-by-functions/sorting-by-functions.go b/src/043-sorting-by-functions/sorting-by-functions.go similarity index 100% rename from src/042-sorting-by-functions/sorting-by-functions.go rename to src/043-sorting-by-functions/sorting-by-functions.go diff --git a/src/042-sorting-by-functions/sorting-by-functions.sh b/src/043-sorting-by-functions/sorting-by-functions.sh similarity index 100% rename from src/042-sorting-by-functions/sorting-by-functions.sh rename to src/043-sorting-by-functions/sorting-by-functions.sh diff --git a/src/043-collection-functions/collection-functions.go b/src/044-collection-functions/collection-functions.go similarity index 100% rename from src/043-collection-functions/collection-functions.go rename to src/044-collection-functions/collection-functions.go diff --git a/src/044-string-functions/string-functions.go b/src/045-string-functions/string-functions.go similarity index 100% rename from src/044-string-functions/string-functions.go rename to src/045-string-functions/string-functions.go diff --git a/src/045-string-formatting/string-formatting.go b/src/046-string-formatting/string-formatting.go similarity index 100% rename from src/045-string-formatting/string-formatting.go rename to src/046-string-formatting/string-formatting.go diff --git a/src/045-string-formatting/string-formatting.sh b/src/046-string-formatting/string-formatting.sh similarity index 100% rename from src/045-string-formatting/string-formatting.sh rename to src/046-string-formatting/string-formatting.sh diff --git a/src/046-regexs/regexs.go b/src/047-regexs/regexs.go similarity index 100% rename from src/046-regexs/regexs.go rename to src/047-regexs/regexs.go diff --git a/src/046-regexs/regexs.sh b/src/047-regexs/regexs.sh similarity index 100% rename from src/046-regexs/regexs.sh rename to src/047-regexs/regexs.sh diff --git a/src/047-bytes/bytes.go b/src/048-bytes/bytes.go similarity index 100% rename from src/047-bytes/bytes.go rename to src/048-bytes/bytes.go diff --git a/src/048-json/json.go b/src/049-json/json.go similarity index 100% rename from src/048-json/json.go rename to src/049-json/json.go diff --git a/src/049-time/time.go b/src/050-time/time.go similarity index 100% rename from src/049-time/time.go rename to src/050-time/time.go diff --git a/src/049-time/time.sh b/src/050-time/time.sh similarity index 100% rename from src/049-time/time.sh rename to src/050-time/time.sh diff --git a/src/050-epochs/epochs.go b/src/051-epochs/epochs.go similarity index 100% rename from src/050-epochs/epochs.go rename to src/051-epochs/epochs.go diff --git a/src/050-epochs/epochs.sh b/src/051-epochs/epochs.sh similarity index 100% rename from src/050-epochs/epochs.sh rename to src/051-epochs/epochs.sh diff --git a/src/051-elapsed-time/elapsed-time.go b/src/052-elapsed-time/elapsed-time.go similarity index 100% rename from src/051-elapsed-time/elapsed-time.go rename to src/052-elapsed-time/elapsed-time.go diff --git a/src/052-random-numbers/random-numbers.go b/src/053-random-numbers/random-numbers.go similarity index 100% rename from src/052-random-numbers/random-numbers.go rename to src/053-random-numbers/random-numbers.go diff --git a/src/052-random-numbers/random-numbers.sh b/src/053-random-numbers/random-numbers.sh similarity index 100% rename from src/052-random-numbers/random-numbers.sh rename to src/053-random-numbers/random-numbers.sh diff --git a/src/053-number-parsing/number-parsing.go b/src/054-number-parsing/number-parsing.go similarity index 100% rename from src/053-number-parsing/number-parsing.go rename to src/054-number-parsing/number-parsing.go diff --git a/src/053-number-parsing/number-parsing.sh b/src/054-number-parsing/number-parsing.sh similarity index 100% rename from src/053-number-parsing/number-parsing.sh rename to src/054-number-parsing/number-parsing.sh diff --git a/src/054-urls/urls.go b/src/055-urls/urls.go similarity index 100% rename from src/054-urls/urls.go rename to src/055-urls/urls.go diff --git a/src/054-urls/urls.sh b/src/055-urls/urls.sh similarity index 100% rename from src/054-urls/urls.sh rename to src/055-urls/urls.sh diff --git a/src/082-sha1-hashes/sha1-hashes.go b/src/056-sha1-hashes/sha1-hashes.go similarity index 100% rename from src/082-sha1-hashes/sha1-hashes.go rename to src/056-sha1-hashes/sha1-hashes.go diff --git a/src/082-sha1-hashes/sha1-hashes.sh b/src/056-sha1-hashes/sha1-hashes.sh similarity index 100% rename from src/082-sha1-hashes/sha1-hashes.sh rename to src/056-sha1-hashes/sha1-hashes.sh diff --git a/src/056-reading-files/reading-files.go b/src/057-reading-files/reading-files.go similarity index 100% rename from src/056-reading-files/reading-files.go rename to src/057-reading-files/reading-files.go diff --git a/src/057-writing-files/writing-files.go b/src/058-writing-files/writing-files.go similarity index 100% rename from src/057-writing-files/writing-files.go rename to src/058-writing-files/writing-files.go diff --git a/src/058-line-filters/line-filters.go b/src/059-line-filters/line-filters.go similarity index 100% rename from src/058-line-filters/line-filters.go rename to src/059-line-filters/line-filters.go diff --git a/src/058-line-filters/line-filters.sh b/src/059-line-filters/line-filters.sh similarity index 100% rename from src/058-line-filters/line-filters.sh rename to src/059-line-filters/line-filters.sh diff --git a/src/059-command-line-arguments/command-line-arguments.go b/src/060-command-line-arguments/command-line-arguments.go similarity index 100% rename from src/059-command-line-arguments/command-line-arguments.go rename to src/060-command-line-arguments/command-line-arguments.go diff --git a/src/059-command-line-arguments/command-line-arguments.sh b/src/060-command-line-arguments/command-line-arguments.sh similarity index 100% rename from src/059-command-line-arguments/command-line-arguments.sh rename to src/060-command-line-arguments/command-line-arguments.sh diff --git a/src/060-command-line-flags/command-line-flags.go b/src/061-command-line-flags/command-line-flags.go similarity index 100% rename from src/060-command-line-flags/command-line-flags.go rename to src/061-command-line-flags/command-line-flags.go diff --git a/src/061-environment-variables/environment-variables.go b/src/062-environment-variables/environment-variables.go similarity index 100% rename from src/061-environment-variables/environment-variables.go rename to src/062-environment-variables/environment-variables.go diff --git a/src/061-environment-variables/environment-variables.sh b/src/062-environment-variables/environment-variables.sh similarity index 100% rename from src/061-environment-variables/environment-variables.sh rename to src/062-environment-variables/environment-variables.sh diff --git a/src/062-spawning-processes/spawning-processes.go b/src/063-spawning-processes/spawning-processes.go similarity index 100% rename from src/062-spawning-processes/spawning-processes.go rename to src/063-spawning-processes/spawning-processes.go diff --git a/src/062-spawning-processes/spawning-processes.sh b/src/063-spawning-processes/spawning-processes.sh similarity index 100% rename from src/062-spawning-processes/spawning-processes.sh rename to src/063-spawning-processes/spawning-processes.sh diff --git a/src/063-execing-processes/execing-processes.go b/src/064-execing-processes/execing-processes.go similarity index 100% rename from src/063-execing-processes/execing-processes.go rename to src/064-execing-processes/execing-processes.go diff --git a/src/064-signals/signals.go b/src/065-signals/signals.go similarity index 100% rename from src/064-signals/signals.go rename to src/065-signals/signals.go diff --git a/src/064-signals/signals.sh b/src/065-signals/signals.sh similarity index 100% rename from src/064-signals/signals.sh rename to src/065-signals/signals.sh diff --git a/src/065-exit/exit.go b/src/066-exit/exit.go similarity index 100% rename from src/065-exit/exit.go rename to src/066-exit/exit.go diff --git a/src/065-exit/exit.sh b/src/066-exit/exit.sh similarity index 100% rename from src/065-exit/exit.sh rename to src/066-exit/exit.sh diff --git a/src/066-http-client/http-client.go b/src/067-http-client/http-client.go similarity index 100% rename from src/066-http-client/http-client.go rename to src/067-http-client/http-client.go diff --git a/src/067-https-client/https-client.go b/src/068-https-client/https-client.go similarity index 100% rename from src/067-https-client/https-client.go rename to src/068-https-client/https-client.go diff --git a/src/068-redis/redis.go b/src/069-redis/redis.go similarity index 100% rename from src/068-redis/redis.go rename to src/069-redis/redis.go diff --git a/src/068-redis/redis.sh b/src/069-redis/redis.sh similarity index 100% rename from src/068-redis/redis.sh rename to src/069-redis/redis.sh diff --git a/src/069-postgres/postgres.go b/src/070-postgres/postgres.go similarity index 100% rename from src/069-postgres/postgres.go rename to src/070-postgres/postgres.go diff --git a/src/069-postgres/postgres.sh b/src/070-postgres/postgres.sh similarity index 100% rename from src/069-postgres/postgres.sh rename to src/070-postgres/postgres.sh diff --git a/src/070-sending-email/sending-email.go b/src/071-sending-email/sending-email.go similarity index 100% rename from src/070-sending-email/sending-email.go rename to src/071-sending-email/sending-email.go diff --git a/src/071-hello-web/hello-web.go b/src/072-hello-web/hello-web.go similarity index 100% rename from src/071-hello-web/hello-web.go rename to src/072-hello-web/hello-web.go diff --git a/src/072-responses/responses.go b/src/073-responses/responses.go similarity index 100% rename from src/072-responses/responses.go rename to src/073-responses/responses.go diff --git a/src/072-responses/responses.sh b/src/073-responses/responses.sh similarity index 100% rename from src/072-responses/responses.sh rename to src/073-responses/responses.sh diff --git a/src/073-request-routing/request-routing.go b/src/074-request-routing/request-routing.go similarity index 100% rename from src/073-request-routing/request-routing.go rename to src/074-request-routing/request-routing.go diff --git a/src/073-request-routing/request-routing.sh b/src/074-request-routing/request-routing.sh similarity index 100% rename from src/073-request-routing/request-routing.sh rename to src/074-request-routing/request-routing.sh diff --git a/src/074-request-logging/request-logging.go b/src/075-request-logging/request-logging.go similarity index 100% rename from src/074-request-logging/request-logging.go rename to src/075-request-logging/request-logging.go diff --git a/src/075-static-content/static-content.go b/src/076-static-content/static-content.go similarity index 100% rename from src/075-static-content/static-content.go rename to src/076-static-content/static-content.go diff --git a/src/075-static-content/static-content.sh b/src/076-static-content/static-content.sh similarity index 100% rename from src/075-static-content/static-content.sh rename to src/076-static-content/static-content.sh diff --git a/src/076-basic-authentication/basic-authentication.go b/src/077-basic-authentication/basic-authentication.go similarity index 100% rename from src/076-basic-authentication/basic-authentication.go rename to src/077-basic-authentication/basic-authentication.go diff --git a/src/077-canonical-hosts/canonical-hosts.go b/src/078-canonical-hosts/canonical-hosts.go similarity index 100% rename from src/077-canonical-hosts/canonical-hosts.go rename to src/078-canonical-hosts/canonical-hosts.go diff --git a/src/077-canonical-hosts/canonical-hosts.sh b/src/078-canonical-hosts/canonical-hosts.sh similarity index 100% rename from src/077-canonical-hosts/canonical-hosts.sh rename to src/078-canonical-hosts/canonical-hosts.sh diff --git a/src/078-middleware/middleware.go b/src/079-middleware/middleware.go similarity index 100% rename from src/078-middleware/middleware.go rename to src/079-middleware/middleware.go diff --git a/src/079-graceful-shutdown/graceful-shutdown.go b/src/080-graceful-shutdown/graceful-shutdown.go similarity index 100% rename from src/079-graceful-shutdown/graceful-shutdown.go rename to src/080-graceful-shutdown/graceful-shutdown.go diff --git a/src/079-graceful-shutdown/graceful-shutdown.sh b/src/080-graceful-shutdown/graceful-shutdown.sh similarity index 100% rename from src/079-graceful-shutdown/graceful-shutdown.sh rename to src/080-graceful-shutdown/graceful-shutdown.sh diff --git a/src/084-https-servers/https-servers.go b/src/081-https-servers/https-servers.go similarity index 100% rename from src/084-https-servers/https-servers.go rename to src/081-https-servers/https-servers.go diff --git a/src/084-https-servers/https-servers.sh b/src/081-https-servers/https-servers.sh similarity index 100% rename from src/084-https-servers/https-servers.sh rename to src/081-https-servers/https-servers.sh diff --git a/tool/number.go b/tool/number.go index f74bc65..33cfe59 100644 --- a/tool/number.go +++ b/tool/number.go @@ -69,7 +69,7 @@ func main() { oldName := sourceMap[indexName] newName := fmt.Sprintf("%03d-%s", index+1, indexName) if oldName != newName { - os.Rename(oldName, newName) + os.Rename("src/"+oldName, "src/"+newName) } } }