From 64aa4acf05bf5a67d7ca0e760be7d007289f6451 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Sun, 23 Sep 2012 14:31:05 -0700 Subject: [PATCH] renumber --- {045-worker-pools => 044-worker-pools}/worker-pools.go | 0 {046-sorting => 045-sorting}/sorting.go | 0 {046-sorting => 045-sorting}/sorting.sh | 0 .../sorting-by-functions.go | 0 .../sorting-by-functions.sh | 0 .../string-functions.go | 0 .../string-formatting.go | 0 .../string-formatting.sh | 0 {050-regexs => 049-regexs}/regexs.go | 0 {050-regexs => 049-regexs}/regexs.sh | 0 {051-bytes => 050-bytes}/bytes.go | 0 {052-json => 051-json}/json.go | 0 {054-time => 052-time}/time.go | 0 {054-time => 052-time}/time.sh | 0 {055-epochs => 053-epochs}/epochs.go | 0 {055-epochs => 053-epochs}/epochs.sh | 0 .../measuring-elapsed-time.go | 0 {057-timers => 055-timers}/timers.go | 0 {057-timers => 055-timers}/tiners.sh | 0 {058-tickers => 056-tickers}/tickers.go | 0 {058-tickers => 056-tickers}/tickers.sh | 0 {059-random-numbers => 057-random-numbers}/random-numbers.go | 0 {059-random-numbers => 057-random-numbers}/random-numbers.sh | 0 {060-number-parsing => 058-number-parsing}/number-parsing.go | 0 {060-number-parsing => 058-number-parsing}/number-parsing.sh | 0 {062-urls => 060-urls}/urls.go | 0 {062-urls => 060-urls}/urls.sh | 0 {063-file-open => 062-file-open}/file-open.go | 0 {064-file-read => 063-file-read}/file-read.go | 0 {065-file-write => 064-file-write}/file-write.go | 0 .../command-line-arguments.go | 0 .../command-line-arguments.sh | 0 .../command-line-flags.go | 0 {068-env => 067-env}/env.go | 0 {068-env => 067-env}/env.sh | 0 {069-signals => 068-signals}/signals.go | 0 {069-signals => 068-signals}/signals.sh | 0 {070-exit => 069-exit}/exit.go | 0 {070-exit => 069-exit}/exit.sh | 0 {071-spawn => 070-spawn}/spawn.go | 0 {071-spawn => 070-spawn}/spawn.sh | 0 {072-exec => 071-exec}/exec.go | 0 {073-reading-input => 072-reading-input}/reading-input.go | 0 {073-reading-input => 072-reading-input}/reading-input.sh | 0 {074-users => 073-users}/users.go | 0 {074-users => 073-users}/users.sh | 0 {075-line-filter => 074-line-filter}/line-filter.go | 0 {075-line-filter => 074-line-filter}/line-filter.sh | 0 .../http-server-basic.go | 0 .../http-server-canonical-host.go | 0 .../http-server-canonical-host.sh | 0 .../http-server-graceful-shutdown.go | 0 .../http-server-graceful-shutdown.sh | 0 {087-http-server-log => 086-http-server-log}/http-server-log.go | 0 .../http-server-middleware.go | 0 .../http-server-routing.go | 0 .../http-server-routing.sh | 0 .../http-server-static-dynamic.go | 0 .../http-server-static-dynamic.sh | 0 .../http-server-static-select.go | 0 .../http-server-static-select.sh | 0 .../http-server-static.go | 0 .../http-server-static.sh | 0 .../http-server-status-code.go | 0 .../http-server-status-code.sh | 0 {094-http-server => 093-http-server}/http-server.go | 0 {095-https-server => 094-https-server}/https-server.go | 0 {095-https-server => 094-https-server}/https-server.sh | 0 tool/renumber.go | 2 +- 69 files changed, 1 insertion(+), 1 deletion(-) rename {045-worker-pools => 044-worker-pools}/worker-pools.go (100%) rename {046-sorting => 045-sorting}/sorting.go (100%) rename {046-sorting => 045-sorting}/sorting.sh (100%) rename {047-sorting-by-functions => 046-sorting-by-functions}/sorting-by-functions.go (100%) rename {047-sorting-by-functions => 046-sorting-by-functions}/sorting-by-functions.sh (100%) rename {048-string-functions => 047-string-functions}/string-functions.go (100%) rename {049-string-formatting => 048-string-formatting}/string-formatting.go (100%) rename {049-string-formatting => 048-string-formatting}/string-formatting.sh (100%) rename {050-regexs => 049-regexs}/regexs.go (100%) rename {050-regexs => 049-regexs}/regexs.sh (100%) rename {051-bytes => 050-bytes}/bytes.go (100%) rename {052-json => 051-json}/json.go (100%) rename {054-time => 052-time}/time.go (100%) rename {054-time => 052-time}/time.sh (100%) rename {055-epochs => 053-epochs}/epochs.go (100%) rename {055-epochs => 053-epochs}/epochs.sh (100%) rename {056-measuring-elapsed-time => 054-measuring-elapsed-time}/measuring-elapsed-time.go (100%) rename {057-timers => 055-timers}/timers.go (100%) rename {057-timers => 055-timers}/tiners.sh (100%) rename {058-tickers => 056-tickers}/tickers.go (100%) rename {058-tickers => 056-tickers}/tickers.sh (100%) rename {059-random-numbers => 057-random-numbers}/random-numbers.go (100%) rename {059-random-numbers => 057-random-numbers}/random-numbers.sh (100%) rename {060-number-parsing => 058-number-parsing}/number-parsing.go (100%) rename {060-number-parsing => 058-number-parsing}/number-parsing.sh (100%) rename {062-urls => 060-urls}/urls.go (100%) rename {062-urls => 060-urls}/urls.sh (100%) rename {063-file-open => 062-file-open}/file-open.go (100%) rename {064-file-read => 063-file-read}/file-read.go (100%) rename {065-file-write => 064-file-write}/file-write.go (100%) rename {066-command-line-arguments => 065-command-line-arguments}/command-line-arguments.go (100%) rename {066-command-line-arguments => 065-command-line-arguments}/command-line-arguments.sh (100%) rename {067-command-line-flags => 066-command-line-flags}/command-line-flags.go (100%) rename {068-env => 067-env}/env.go (100%) rename {068-env => 067-env}/env.sh (100%) rename {069-signals => 068-signals}/signals.go (100%) rename {069-signals => 068-signals}/signals.sh (100%) rename {070-exit => 069-exit}/exit.go (100%) rename {070-exit => 069-exit}/exit.sh (100%) rename {071-spawn => 070-spawn}/spawn.go (100%) rename {071-spawn => 070-spawn}/spawn.sh (100%) rename {072-exec => 071-exec}/exec.go (100%) rename {073-reading-input => 072-reading-input}/reading-input.go (100%) rename {073-reading-input => 072-reading-input}/reading-input.sh (100%) rename {074-users => 073-users}/users.go (100%) rename {074-users => 073-users}/users.sh (100%) rename {075-line-filter => 074-line-filter}/line-filter.go (100%) rename {075-line-filter => 074-line-filter}/line-filter.sh (100%) rename {084-http-server-basic => 083-http-server-basic}/http-server-basic.go (100%) rename {085-http-server-canonical-host => 084-http-server-canonical-host}/http-server-canonical-host.go (100%) rename {085-http-server-canonical-host => 084-http-server-canonical-host}/http-server-canonical-host.sh (100%) rename {086-http-server-graceful-shutdown => 085-http-server-graceful-shutdown}/http-server-graceful-shutdown.go (100%) rename {086-http-server-graceful-shutdown => 085-http-server-graceful-shutdown}/http-server-graceful-shutdown.sh (100%) rename {087-http-server-log => 086-http-server-log}/http-server-log.go (100%) rename {088-http-server-middleware => 087-http-server-middleware}/http-server-middleware.go (100%) rename {089-http-server-routing => 088-http-server-routing}/http-server-routing.go (100%) rename {089-http-server-routing => 088-http-server-routing}/http-server-routing.sh (100%) rename {090-http-server-static-dynamic => 089-http-server-static-dynamic}/http-server-static-dynamic.go (100%) rename {090-http-server-static-dynamic => 089-http-server-static-dynamic}/http-server-static-dynamic.sh (100%) rename {091-http-server-static-select => 090-http-server-static-select}/http-server-static-select.go (100%) rename {091-http-server-static-select => 090-http-server-static-select}/http-server-static-select.sh (100%) rename {092-http-server-static => 091-http-server-static}/http-server-static.go (100%) rename {092-http-server-static => 091-http-server-static}/http-server-static.sh (100%) rename {093-http-server-status-code => 092-http-server-status-code}/http-server-status-code.go (100%) rename {093-http-server-status-code => 092-http-server-status-code}/http-server-status-code.sh (100%) rename {094-http-server => 093-http-server}/http-server.go (100%) rename {095-https-server => 094-https-server}/https-server.go (100%) rename {095-https-server => 094-https-server}/https-server.sh (100%) diff --git a/045-worker-pools/worker-pools.go b/044-worker-pools/worker-pools.go similarity index 100% rename from 045-worker-pools/worker-pools.go rename to 044-worker-pools/worker-pools.go diff --git a/046-sorting/sorting.go b/045-sorting/sorting.go similarity index 100% rename from 046-sorting/sorting.go rename to 045-sorting/sorting.go diff --git a/046-sorting/sorting.sh b/045-sorting/sorting.sh similarity index 100% rename from 046-sorting/sorting.sh rename to 045-sorting/sorting.sh diff --git a/047-sorting-by-functions/sorting-by-functions.go b/046-sorting-by-functions/sorting-by-functions.go similarity index 100% rename from 047-sorting-by-functions/sorting-by-functions.go rename to 046-sorting-by-functions/sorting-by-functions.go diff --git a/047-sorting-by-functions/sorting-by-functions.sh b/046-sorting-by-functions/sorting-by-functions.sh similarity index 100% rename from 047-sorting-by-functions/sorting-by-functions.sh rename to 046-sorting-by-functions/sorting-by-functions.sh diff --git a/048-string-functions/string-functions.go b/047-string-functions/string-functions.go similarity index 100% rename from 048-string-functions/string-functions.go rename to 047-string-functions/string-functions.go diff --git a/049-string-formatting/string-formatting.go b/048-string-formatting/string-formatting.go similarity index 100% rename from 049-string-formatting/string-formatting.go rename to 048-string-formatting/string-formatting.go diff --git a/049-string-formatting/string-formatting.sh b/048-string-formatting/string-formatting.sh similarity index 100% rename from 049-string-formatting/string-formatting.sh rename to 048-string-formatting/string-formatting.sh diff --git a/050-regexs/regexs.go b/049-regexs/regexs.go similarity index 100% rename from 050-regexs/regexs.go rename to 049-regexs/regexs.go diff --git a/050-regexs/regexs.sh b/049-regexs/regexs.sh similarity index 100% rename from 050-regexs/regexs.sh rename to 049-regexs/regexs.sh diff --git a/051-bytes/bytes.go b/050-bytes/bytes.go similarity index 100% rename from 051-bytes/bytes.go rename to 050-bytes/bytes.go diff --git a/052-json/json.go b/051-json/json.go similarity index 100% rename from 052-json/json.go rename to 051-json/json.go diff --git a/054-time/time.go b/052-time/time.go similarity index 100% rename from 054-time/time.go rename to 052-time/time.go diff --git a/054-time/time.sh b/052-time/time.sh similarity index 100% rename from 054-time/time.sh rename to 052-time/time.sh diff --git a/055-epochs/epochs.go b/053-epochs/epochs.go similarity index 100% rename from 055-epochs/epochs.go rename to 053-epochs/epochs.go diff --git a/055-epochs/epochs.sh b/053-epochs/epochs.sh similarity index 100% rename from 055-epochs/epochs.sh rename to 053-epochs/epochs.sh diff --git a/056-measuring-elapsed-time/measuring-elapsed-time.go b/054-measuring-elapsed-time/measuring-elapsed-time.go similarity index 100% rename from 056-measuring-elapsed-time/measuring-elapsed-time.go rename to 054-measuring-elapsed-time/measuring-elapsed-time.go diff --git a/057-timers/timers.go b/055-timers/timers.go similarity index 100% rename from 057-timers/timers.go rename to 055-timers/timers.go diff --git a/057-timers/tiners.sh b/055-timers/tiners.sh similarity index 100% rename from 057-timers/tiners.sh rename to 055-timers/tiners.sh diff --git a/058-tickers/tickers.go b/056-tickers/tickers.go similarity index 100% rename from 058-tickers/tickers.go rename to 056-tickers/tickers.go diff --git a/058-tickers/tickers.sh b/056-tickers/tickers.sh similarity index 100% rename from 058-tickers/tickers.sh rename to 056-tickers/tickers.sh diff --git a/059-random-numbers/random-numbers.go b/057-random-numbers/random-numbers.go similarity index 100% rename from 059-random-numbers/random-numbers.go rename to 057-random-numbers/random-numbers.go diff --git a/059-random-numbers/random-numbers.sh b/057-random-numbers/random-numbers.sh similarity index 100% rename from 059-random-numbers/random-numbers.sh rename to 057-random-numbers/random-numbers.sh diff --git a/060-number-parsing/number-parsing.go b/058-number-parsing/number-parsing.go similarity index 100% rename from 060-number-parsing/number-parsing.go rename to 058-number-parsing/number-parsing.go diff --git a/060-number-parsing/number-parsing.sh b/058-number-parsing/number-parsing.sh similarity index 100% rename from 060-number-parsing/number-parsing.sh rename to 058-number-parsing/number-parsing.sh diff --git a/062-urls/urls.go b/060-urls/urls.go similarity index 100% rename from 062-urls/urls.go rename to 060-urls/urls.go diff --git a/062-urls/urls.sh b/060-urls/urls.sh similarity index 100% rename from 062-urls/urls.sh rename to 060-urls/urls.sh diff --git a/063-file-open/file-open.go b/062-file-open/file-open.go similarity index 100% rename from 063-file-open/file-open.go rename to 062-file-open/file-open.go diff --git a/064-file-read/file-read.go b/063-file-read/file-read.go similarity index 100% rename from 064-file-read/file-read.go rename to 063-file-read/file-read.go diff --git a/065-file-write/file-write.go b/064-file-write/file-write.go similarity index 100% rename from 065-file-write/file-write.go rename to 064-file-write/file-write.go diff --git a/066-command-line-arguments/command-line-arguments.go b/065-command-line-arguments/command-line-arguments.go similarity index 100% rename from 066-command-line-arguments/command-line-arguments.go rename to 065-command-line-arguments/command-line-arguments.go diff --git a/066-command-line-arguments/command-line-arguments.sh b/065-command-line-arguments/command-line-arguments.sh similarity index 100% rename from 066-command-line-arguments/command-line-arguments.sh rename to 065-command-line-arguments/command-line-arguments.sh diff --git a/067-command-line-flags/command-line-flags.go b/066-command-line-flags/command-line-flags.go similarity index 100% rename from 067-command-line-flags/command-line-flags.go rename to 066-command-line-flags/command-line-flags.go diff --git a/068-env/env.go b/067-env/env.go similarity index 100% rename from 068-env/env.go rename to 067-env/env.go diff --git a/068-env/env.sh b/067-env/env.sh similarity index 100% rename from 068-env/env.sh rename to 067-env/env.sh diff --git a/069-signals/signals.go b/068-signals/signals.go similarity index 100% rename from 069-signals/signals.go rename to 068-signals/signals.go diff --git a/069-signals/signals.sh b/068-signals/signals.sh similarity index 100% rename from 069-signals/signals.sh rename to 068-signals/signals.sh diff --git a/070-exit/exit.go b/069-exit/exit.go similarity index 100% rename from 070-exit/exit.go rename to 069-exit/exit.go diff --git a/070-exit/exit.sh b/069-exit/exit.sh similarity index 100% rename from 070-exit/exit.sh rename to 069-exit/exit.sh diff --git a/071-spawn/spawn.go b/070-spawn/spawn.go similarity index 100% rename from 071-spawn/spawn.go rename to 070-spawn/spawn.go diff --git a/071-spawn/spawn.sh b/070-spawn/spawn.sh similarity index 100% rename from 071-spawn/spawn.sh rename to 070-spawn/spawn.sh diff --git a/072-exec/exec.go b/071-exec/exec.go similarity index 100% rename from 072-exec/exec.go rename to 071-exec/exec.go diff --git a/073-reading-input/reading-input.go b/072-reading-input/reading-input.go similarity index 100% rename from 073-reading-input/reading-input.go rename to 072-reading-input/reading-input.go diff --git a/073-reading-input/reading-input.sh b/072-reading-input/reading-input.sh similarity index 100% rename from 073-reading-input/reading-input.sh rename to 072-reading-input/reading-input.sh diff --git a/074-users/users.go b/073-users/users.go similarity index 100% rename from 074-users/users.go rename to 073-users/users.go diff --git a/074-users/users.sh b/073-users/users.sh similarity index 100% rename from 074-users/users.sh rename to 073-users/users.sh diff --git a/075-line-filter/line-filter.go b/074-line-filter/line-filter.go similarity index 100% rename from 075-line-filter/line-filter.go rename to 074-line-filter/line-filter.go diff --git a/075-line-filter/line-filter.sh b/074-line-filter/line-filter.sh similarity index 100% rename from 075-line-filter/line-filter.sh rename to 074-line-filter/line-filter.sh diff --git a/084-http-server-basic/http-server-basic.go b/083-http-server-basic/http-server-basic.go similarity index 100% rename from 084-http-server-basic/http-server-basic.go rename to 083-http-server-basic/http-server-basic.go diff --git a/085-http-server-canonical-host/http-server-canonical-host.go b/084-http-server-canonical-host/http-server-canonical-host.go similarity index 100% rename from 085-http-server-canonical-host/http-server-canonical-host.go rename to 084-http-server-canonical-host/http-server-canonical-host.go diff --git a/085-http-server-canonical-host/http-server-canonical-host.sh b/084-http-server-canonical-host/http-server-canonical-host.sh similarity index 100% rename from 085-http-server-canonical-host/http-server-canonical-host.sh rename to 084-http-server-canonical-host/http-server-canonical-host.sh diff --git a/086-http-server-graceful-shutdown/http-server-graceful-shutdown.go b/085-http-server-graceful-shutdown/http-server-graceful-shutdown.go similarity index 100% rename from 086-http-server-graceful-shutdown/http-server-graceful-shutdown.go rename to 085-http-server-graceful-shutdown/http-server-graceful-shutdown.go diff --git a/086-http-server-graceful-shutdown/http-server-graceful-shutdown.sh b/085-http-server-graceful-shutdown/http-server-graceful-shutdown.sh similarity index 100% rename from 086-http-server-graceful-shutdown/http-server-graceful-shutdown.sh rename to 085-http-server-graceful-shutdown/http-server-graceful-shutdown.sh diff --git a/087-http-server-log/http-server-log.go b/086-http-server-log/http-server-log.go similarity index 100% rename from 087-http-server-log/http-server-log.go rename to 086-http-server-log/http-server-log.go diff --git a/088-http-server-middleware/http-server-middleware.go b/087-http-server-middleware/http-server-middleware.go similarity index 100% rename from 088-http-server-middleware/http-server-middleware.go rename to 087-http-server-middleware/http-server-middleware.go diff --git a/089-http-server-routing/http-server-routing.go b/088-http-server-routing/http-server-routing.go similarity index 100% rename from 089-http-server-routing/http-server-routing.go rename to 088-http-server-routing/http-server-routing.go diff --git a/089-http-server-routing/http-server-routing.sh b/088-http-server-routing/http-server-routing.sh similarity index 100% rename from 089-http-server-routing/http-server-routing.sh rename to 088-http-server-routing/http-server-routing.sh diff --git a/090-http-server-static-dynamic/http-server-static-dynamic.go b/089-http-server-static-dynamic/http-server-static-dynamic.go similarity index 100% rename from 090-http-server-static-dynamic/http-server-static-dynamic.go rename to 089-http-server-static-dynamic/http-server-static-dynamic.go diff --git a/090-http-server-static-dynamic/http-server-static-dynamic.sh b/089-http-server-static-dynamic/http-server-static-dynamic.sh similarity index 100% rename from 090-http-server-static-dynamic/http-server-static-dynamic.sh rename to 089-http-server-static-dynamic/http-server-static-dynamic.sh diff --git a/091-http-server-static-select/http-server-static-select.go b/090-http-server-static-select/http-server-static-select.go similarity index 100% rename from 091-http-server-static-select/http-server-static-select.go rename to 090-http-server-static-select/http-server-static-select.go diff --git a/091-http-server-static-select/http-server-static-select.sh b/090-http-server-static-select/http-server-static-select.sh similarity index 100% rename from 091-http-server-static-select/http-server-static-select.sh rename to 090-http-server-static-select/http-server-static-select.sh diff --git a/092-http-server-static/http-server-static.go b/091-http-server-static/http-server-static.go similarity index 100% rename from 092-http-server-static/http-server-static.go rename to 091-http-server-static/http-server-static.go diff --git a/092-http-server-static/http-server-static.sh b/091-http-server-static/http-server-static.sh similarity index 100% rename from 092-http-server-static/http-server-static.sh rename to 091-http-server-static/http-server-static.sh diff --git a/093-http-server-status-code/http-server-status-code.go b/092-http-server-status-code/http-server-status-code.go similarity index 100% rename from 093-http-server-status-code/http-server-status-code.go rename to 092-http-server-status-code/http-server-status-code.go diff --git a/093-http-server-status-code/http-server-status-code.sh b/092-http-server-status-code/http-server-status-code.sh similarity index 100% rename from 093-http-server-status-code/http-server-status-code.sh rename to 092-http-server-status-code/http-server-status-code.sh diff --git a/094-http-server/http-server.go b/093-http-server/http-server.go similarity index 100% rename from 094-http-server/http-server.go rename to 093-http-server/http-server.go diff --git a/095-https-server/https-server.go b/094-https-server/https-server.go similarity index 100% rename from 095-https-server/https-server.go rename to 094-https-server/https-server.go diff --git a/095-https-server/https-server.sh b/094-https-server/https-server.sh similarity index 100% rename from 095-https-server/https-server.sh rename to 094-https-server/https-server.sh diff --git a/tool/renumber.go b/tool/renumber.go index 22a97de..c8984d3 100644 --- a/tool/renumber.go +++ b/tool/renumber.go @@ -40,7 +40,7 @@ func main() { indexNamesAll := strings.Split(string(indexBytes), "\n") indexNames := make([]string, 0) for _, indexName := range indexNamesAll { - if indexName != "" && !strings.Contains(indexName, "#") && !strings.Contains("~") { + if indexName != "" && !strings.Contains(indexName, "#") && !strings.Contains(indexName, "~") { indexNames = append(indexNames, indexName) } }