From 434392e67c39e2e21639149c18a5e26e25c1e1b9 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Sun, 23 Sep 2012 14:54:59 -0700 Subject: [PATCH] index work --- {021-pointers => 020-pointers}/pointers.go | 0 020-recover/recover.go | 12 ------------ {022-new => 021-new}/new.go | 0 {023-structs => 022-structs}/structs.go | 2 ++ {025-methods => 023-methods}/methods.go | 0 {026-embedding => 024-embedding}/embedding.go | 0 024-struct-fields/struct-fields.go | 17 ----------------- .../interfaces.go | 0 {029-errors => 026-errors}/errors.go | 0 {028-ok-guards => 027-ok-guards}/ok-guards.go | 2 ++ .../goroutines.go | 0 .../concurrent-goroutines.go | 0 {032-channels => 030-channels}/channels.go | 0 .../channel-buffering.go | 0 .../channel-directions.go | 0 .../synchronization.go | 0 .../synchronization.sh | 0 {036-select => 034-select}/select.go | 0 {037-timeouts => 035-timeouts}/timeouts.go | 0 .../081-scatter-gather.go | 0 .../rate-limiting.go | 0 .../worker-pools.go | 0 {041-sorting => 039-sorting}/sorting.go | 0 {041-sorting => 039-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 {045-regexs => 043-regexs}/regexs.go | 0 {045-regexs => 043-regexs}/regexs.sh | 0 {046-bytes => 044-bytes}/bytes.go | 0 {047-json => 045-json}/json.go | 0 {048-time => 046-time}/time.go | 0 {048-time => 046-time}/time.sh | 0 {049-epochs => 047-epochs}/epochs.go | 0 {049-epochs => 047-epochs}/epochs.sh | 0 .../measuring-elapsed-time.go | 0 {051-timers => 049-timers}/timers.go | 0 {051-timers => 049-timers}/tiners.sh | 0 {052-tickers => 050-tickers}/tickers.go | 0 {052-tickers => 050-tickers}/tickers.sh | 0 .../random-numbers.go | 0 .../random-numbers.sh | 0 .../number-parsing.go | 0 .../number-parsing.sh | 0 {056-urls => 054-urls}/urls.go | 0 {056-urls => 054-urls}/urls.sh | 0 {058-file-open => 056-file-open}/file-open.go | 0 {059-file-read => 057-file-read}/file-read.go | 0 .../file-write.go | 0 .../command-line-arguments.go | 0 .../command-line-arguments.sh | 0 .../command-line-flags.go | 0 {063-env => 061-env}/env.go | 0 {063-env => 061-env}/env.sh | 0 {064-signals => 062-signals}/signals.go | 0 {064-signals => 062-signals}/signals.sh | 0 {065-exit => 063-exit}/exit.go | 0 {065-exit => 063-exit}/exit.sh | 0 {066-spawn => 064-spawn}/spawn.go | 0 {066-spawn => 064-spawn}/spawn.sh | 0 {067-exec => 065-exec}/exec.go | 0 .../reading-input.go | 0 .../reading-input.sh | 0 {069-users => 067-users}/users.go | 0 {069-users => 067-users}/users.sh | 0 .../line-filter.go | 0 .../line-filter.sh | 0 .../tcp-client.go | 0 .../tcp-client.sh | 0 .../http-client.go | 0 .../http-client-basic.go | 0 .../https-client.go | 0 {076-redis => 074-redis}/redis.go | 0 {076-redis => 074-redis}/redis.sh | 0 {077-postgres => 075-postgres}/postgres.go | 0 {077-postgres => 075-postgres}/postgres.sh | 0 .../sending-email.go | 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 .../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 .../http-server.go | 0 .../https-server.go | 0 .../https-server.sh | 0 tool/index.txt | 4 +--- 100 files changed, 5 insertions(+), 32 deletions(-) rename {021-pointers => 020-pointers}/pointers.go (100%) delete mode 100644 020-recover/recover.go rename {022-new => 021-new}/new.go (100%) rename {023-structs => 022-structs}/structs.go (92%) rename {025-methods => 023-methods}/methods.go (100%) rename {026-embedding => 024-embedding}/embedding.go (100%) delete mode 100644 024-struct-fields/struct-fields.go rename {027-interfaces => 025-interfaces}/interfaces.go (100%) rename {029-errors => 026-errors}/errors.go (100%) rename {028-ok-guards => 027-ok-guards}/ok-guards.go (87%) rename {030-goroutines => 028-goroutines}/goroutines.go (100%) rename {031-concurrent-goroutines => 029-concurrent-goroutines}/concurrent-goroutines.go (100%) rename {032-channels => 030-channels}/channels.go (100%) rename {033-channel-buffering => 031-channel-buffering}/channel-buffering.go (100%) rename {034-channel-directions => 032-channel-directions}/channel-directions.go (100%) rename {035-synchronization => 033-synchronization}/synchronization.go (100%) rename {035-synchronization => 033-synchronization}/synchronization.sh (100%) rename {036-select => 034-select}/select.go (100%) rename {037-timeouts => 035-timeouts}/timeouts.go (100%) rename {038-scatter-gather => 036-scatter-gather}/081-scatter-gather.go (100%) rename {039-rate-limiting => 037-rate-limiting}/rate-limiting.go (100%) rename {040-worker-pools => 038-worker-pools}/worker-pools.go (100%) rename {041-sorting => 039-sorting}/sorting.go (100%) rename {041-sorting => 039-sorting}/sorting.sh (100%) rename {042-sorting-by-functions => 040-sorting-by-functions}/sorting-by-functions.go (100%) rename {042-sorting-by-functions => 040-sorting-by-functions}/sorting-by-functions.sh (100%) rename {043-string-functions => 041-string-functions}/string-functions.go (100%) rename {044-string-formatting => 042-string-formatting}/string-formatting.go (100%) rename {044-string-formatting => 042-string-formatting}/string-formatting.sh (100%) rename {045-regexs => 043-regexs}/regexs.go (100%) rename {045-regexs => 043-regexs}/regexs.sh (100%) rename {046-bytes => 044-bytes}/bytes.go (100%) rename {047-json => 045-json}/json.go (100%) rename {048-time => 046-time}/time.go (100%) rename {048-time => 046-time}/time.sh (100%) rename {049-epochs => 047-epochs}/epochs.go (100%) rename {049-epochs => 047-epochs}/epochs.sh (100%) rename {050-measuring-elapsed-time => 048-measuring-elapsed-time}/measuring-elapsed-time.go (100%) rename {051-timers => 049-timers}/timers.go (100%) rename {051-timers => 049-timers}/tiners.sh (100%) rename {052-tickers => 050-tickers}/tickers.go (100%) rename {052-tickers => 050-tickers}/tickers.sh (100%) rename {053-random-numbers => 051-random-numbers}/random-numbers.go (100%) rename {053-random-numbers => 051-random-numbers}/random-numbers.sh (100%) rename {054-number-parsing => 052-number-parsing}/number-parsing.go (100%) rename {054-number-parsing => 052-number-parsing}/number-parsing.sh (100%) rename {056-urls => 054-urls}/urls.go (100%) rename {056-urls => 054-urls}/urls.sh (100%) rename {058-file-open => 056-file-open}/file-open.go (100%) rename {059-file-read => 057-file-read}/file-read.go (100%) rename {060-file-write => 058-file-write}/file-write.go (100%) rename {061-command-line-arguments => 059-command-line-arguments}/command-line-arguments.go (100%) rename {061-command-line-arguments => 059-command-line-arguments}/command-line-arguments.sh (100%) rename {062-command-line-flags => 060-command-line-flags}/command-line-flags.go (100%) rename {063-env => 061-env}/env.go (100%) rename {063-env => 061-env}/env.sh (100%) rename {064-signals => 062-signals}/signals.go (100%) rename {064-signals => 062-signals}/signals.sh (100%) rename {065-exit => 063-exit}/exit.go (100%) rename {065-exit => 063-exit}/exit.sh (100%) rename {066-spawn => 064-spawn}/spawn.go (100%) rename {066-spawn => 064-spawn}/spawn.sh (100%) rename {067-exec => 065-exec}/exec.go (100%) rename {068-reading-input => 066-reading-input}/reading-input.go (100%) rename {068-reading-input => 066-reading-input}/reading-input.sh (100%) rename {069-users => 067-users}/users.go (100%) rename {069-users => 067-users}/users.sh (100%) rename {070-line-filter => 068-line-filter}/line-filter.go (100%) rename {070-line-filter => 068-line-filter}/line-filter.sh (100%) rename {072-tcp-client => 070-tcp-client}/tcp-client.go (100%) rename {072-tcp-client => 070-tcp-client}/tcp-client.sh (100%) rename {073-http-client => 071-http-client}/http-client.go (100%) rename {074-http-client-basic => 072-http-client-basic}/http-client-basic.go (100%) rename {075-https-client => 073-https-client}/https-client.go (100%) rename {076-redis => 074-redis}/redis.go (100%) rename {076-redis => 074-redis}/redis.sh (100%) rename {077-postgres => 075-postgres}/postgres.go (100%) rename {077-postgres => 075-postgres}/postgres.sh (100%) rename {078-sending-email => 076-sending-email}/sending-email.go (100%) rename {079-http-server-basic => 077-http-server-basic}/http-server-basic.go (100%) rename {080-http-server-canonical-host => 078-http-server-canonical-host}/http-server-canonical-host.go (100%) rename {080-http-server-canonical-host => 078-http-server-canonical-host}/http-server-canonical-host.sh (100%) rename {081-http-server-graceful-shutdown => 079-http-server-graceful-shutdown}/http-server-graceful-shutdown.go (100%) rename {081-http-server-graceful-shutdown => 079-http-server-graceful-shutdown}/http-server-graceful-shutdown.sh (100%) rename {082-http-server-log => 080-http-server-log}/http-server-log.go (100%) rename {083-http-server-middleware => 081-http-server-middleware}/http-server-middleware.go (100%) rename {084-http-server-routing => 082-http-server-routing}/http-server-routing.go (100%) rename {084-http-server-routing => 082-http-server-routing}/http-server-routing.sh (100%) rename {085-http-server-static-dynamic => 083-http-server-static-dynamic}/http-server-static-dynamic.go (100%) rename {085-http-server-static-dynamic => 083-http-server-static-dynamic}/http-server-static-dynamic.sh (100%) rename {086-http-server-static-select => 084-http-server-static-select}/http-server-static-select.go (100%) rename {086-http-server-static-select => 084-http-server-static-select}/http-server-static-select.sh (100%) rename {087-http-server-static => 085-http-server-static}/http-server-static.go (100%) rename {087-http-server-static => 085-http-server-static}/http-server-static.sh (100%) rename {088-http-server-status-code => 086-http-server-status-code}/http-server-status-code.go (100%) rename {088-http-server-status-code => 086-http-server-status-code}/http-server-status-code.sh (100%) rename {089-http-server => 087-http-server}/http-server.go (100%) rename {090-https-server => 088-https-server}/https-server.go (100%) rename {090-https-server => 088-https-server}/https-server.sh (100%) diff --git a/021-pointers/pointers.go b/020-pointers/pointers.go similarity index 100% rename from 021-pointers/pointers.go rename to 020-pointers/pointers.go diff --git a/020-recover/recover.go b/020-recover/recover.go deleted file mode 100644 index 32094af..0000000 --- a/020-recover/recover.go +++ /dev/null @@ -1,12 +0,0 @@ -// ## Recover - -package main - -import "fmt" - -func main() { - defer func() { - fmt.Println("Preparing for trouble...\n") - }() - panic("Trouble!") -} diff --git a/022-new/new.go b/021-new/new.go similarity index 100% rename from 022-new/new.go rename to 021-new/new.go diff --git a/023-structs/structs.go b/022-structs/structs.go similarity index 92% rename from 023-structs/structs.go rename to 022-structs/structs.go index 5b04ffd..449860a 100644 --- a/023-structs/structs.go +++ b/022-structs/structs.go @@ -20,3 +20,5 @@ func main() { cOrdered := Circle{1, 2, 5} fmt.Println(cOrdered) } + +// todo: add field access diff --git a/025-methods/methods.go b/023-methods/methods.go similarity index 100% rename from 025-methods/methods.go rename to 023-methods/methods.go diff --git a/026-embedding/embedding.go b/024-embedding/embedding.go similarity index 100% rename from 026-embedding/embedding.go rename to 024-embedding/embedding.go diff --git a/024-struct-fields/struct-fields.go b/024-struct-fields/struct-fields.go deleted file mode 100644 index 6a59480..0000000 --- a/024-struct-fields/struct-fields.go +++ /dev/null @@ -1,17 +0,0 @@ -// ## Struct Fields - -package main - -import "fmt" - -type Circle struct { - x, y, r int -} - -func main() { - c := Circle{x: 1, y: 2, r: 5} - fmt.Println(c.x, c.y, c.r) - c.x = 10 - c.y = 5 - fmt.Println(c.x, c.y, c.r) -} diff --git a/027-interfaces/interfaces.go b/025-interfaces/interfaces.go similarity index 100% rename from 027-interfaces/interfaces.go rename to 025-interfaces/interfaces.go diff --git a/029-errors/errors.go b/026-errors/errors.go similarity index 100% rename from 029-errors/errors.go rename to 026-errors/errors.go diff --git a/028-ok-guards/ok-guards.go b/027-ok-guards/ok-guards.go similarity index 87% rename from 028-ok-guards/ok-guards.go rename to 027-ok-guards/ok-guards.go index e0ad577..6e5b577 100644 --- a/028-ok-guards/ok-guards.go +++ b/027-ok-guards/ok-guards.go @@ -18,3 +18,5 @@ func main() { fmt.Println(name) } } + +// todo: note about use with errors diff --git a/030-goroutines/goroutines.go b/028-goroutines/goroutines.go similarity index 100% rename from 030-goroutines/goroutines.go rename to 028-goroutines/goroutines.go diff --git a/031-concurrent-goroutines/concurrent-goroutines.go b/029-concurrent-goroutines/concurrent-goroutines.go similarity index 100% rename from 031-concurrent-goroutines/concurrent-goroutines.go rename to 029-concurrent-goroutines/concurrent-goroutines.go diff --git a/032-channels/channels.go b/030-channels/channels.go similarity index 100% rename from 032-channels/channels.go rename to 030-channels/channels.go diff --git a/033-channel-buffering/channel-buffering.go b/031-channel-buffering/channel-buffering.go similarity index 100% rename from 033-channel-buffering/channel-buffering.go rename to 031-channel-buffering/channel-buffering.go diff --git a/034-channel-directions/channel-directions.go b/032-channel-directions/channel-directions.go similarity index 100% rename from 034-channel-directions/channel-directions.go rename to 032-channel-directions/channel-directions.go diff --git a/035-synchronization/synchronization.go b/033-synchronization/synchronization.go similarity index 100% rename from 035-synchronization/synchronization.go rename to 033-synchronization/synchronization.go diff --git a/035-synchronization/synchronization.sh b/033-synchronization/synchronization.sh similarity index 100% rename from 035-synchronization/synchronization.sh rename to 033-synchronization/synchronization.sh diff --git a/036-select/select.go b/034-select/select.go similarity index 100% rename from 036-select/select.go rename to 034-select/select.go diff --git a/037-timeouts/timeouts.go b/035-timeouts/timeouts.go similarity index 100% rename from 037-timeouts/timeouts.go rename to 035-timeouts/timeouts.go diff --git a/038-scatter-gather/081-scatter-gather.go b/036-scatter-gather/081-scatter-gather.go similarity index 100% rename from 038-scatter-gather/081-scatter-gather.go rename to 036-scatter-gather/081-scatter-gather.go diff --git a/039-rate-limiting/rate-limiting.go b/037-rate-limiting/rate-limiting.go similarity index 100% rename from 039-rate-limiting/rate-limiting.go rename to 037-rate-limiting/rate-limiting.go diff --git a/040-worker-pools/worker-pools.go b/038-worker-pools/worker-pools.go similarity index 100% rename from 040-worker-pools/worker-pools.go rename to 038-worker-pools/worker-pools.go diff --git a/041-sorting/sorting.go b/039-sorting/sorting.go similarity index 100% rename from 041-sorting/sorting.go rename to 039-sorting/sorting.go diff --git a/041-sorting/sorting.sh b/039-sorting/sorting.sh similarity index 100% rename from 041-sorting/sorting.sh rename to 039-sorting/sorting.sh diff --git a/042-sorting-by-functions/sorting-by-functions.go b/040-sorting-by-functions/sorting-by-functions.go similarity index 100% rename from 042-sorting-by-functions/sorting-by-functions.go rename to 040-sorting-by-functions/sorting-by-functions.go diff --git a/042-sorting-by-functions/sorting-by-functions.sh b/040-sorting-by-functions/sorting-by-functions.sh similarity index 100% rename from 042-sorting-by-functions/sorting-by-functions.sh rename to 040-sorting-by-functions/sorting-by-functions.sh diff --git a/043-string-functions/string-functions.go b/041-string-functions/string-functions.go similarity index 100% rename from 043-string-functions/string-functions.go rename to 041-string-functions/string-functions.go diff --git a/044-string-formatting/string-formatting.go b/042-string-formatting/string-formatting.go similarity index 100% rename from 044-string-formatting/string-formatting.go rename to 042-string-formatting/string-formatting.go diff --git a/044-string-formatting/string-formatting.sh b/042-string-formatting/string-formatting.sh similarity index 100% rename from 044-string-formatting/string-formatting.sh rename to 042-string-formatting/string-formatting.sh diff --git a/045-regexs/regexs.go b/043-regexs/regexs.go similarity index 100% rename from 045-regexs/regexs.go rename to 043-regexs/regexs.go diff --git a/045-regexs/regexs.sh b/043-regexs/regexs.sh similarity index 100% rename from 045-regexs/regexs.sh rename to 043-regexs/regexs.sh diff --git a/046-bytes/bytes.go b/044-bytes/bytes.go similarity index 100% rename from 046-bytes/bytes.go rename to 044-bytes/bytes.go diff --git a/047-json/json.go b/045-json/json.go similarity index 100% rename from 047-json/json.go rename to 045-json/json.go diff --git a/048-time/time.go b/046-time/time.go similarity index 100% rename from 048-time/time.go rename to 046-time/time.go diff --git a/048-time/time.sh b/046-time/time.sh similarity index 100% rename from 048-time/time.sh rename to 046-time/time.sh diff --git a/049-epochs/epochs.go b/047-epochs/epochs.go similarity index 100% rename from 049-epochs/epochs.go rename to 047-epochs/epochs.go diff --git a/049-epochs/epochs.sh b/047-epochs/epochs.sh similarity index 100% rename from 049-epochs/epochs.sh rename to 047-epochs/epochs.sh diff --git a/050-measuring-elapsed-time/measuring-elapsed-time.go b/048-measuring-elapsed-time/measuring-elapsed-time.go similarity index 100% rename from 050-measuring-elapsed-time/measuring-elapsed-time.go rename to 048-measuring-elapsed-time/measuring-elapsed-time.go diff --git a/051-timers/timers.go b/049-timers/timers.go similarity index 100% rename from 051-timers/timers.go rename to 049-timers/timers.go diff --git a/051-timers/tiners.sh b/049-timers/tiners.sh similarity index 100% rename from 051-timers/tiners.sh rename to 049-timers/tiners.sh diff --git a/052-tickers/tickers.go b/050-tickers/tickers.go similarity index 100% rename from 052-tickers/tickers.go rename to 050-tickers/tickers.go diff --git a/052-tickers/tickers.sh b/050-tickers/tickers.sh similarity index 100% rename from 052-tickers/tickers.sh rename to 050-tickers/tickers.sh diff --git a/053-random-numbers/random-numbers.go b/051-random-numbers/random-numbers.go similarity index 100% rename from 053-random-numbers/random-numbers.go rename to 051-random-numbers/random-numbers.go diff --git a/053-random-numbers/random-numbers.sh b/051-random-numbers/random-numbers.sh similarity index 100% rename from 053-random-numbers/random-numbers.sh rename to 051-random-numbers/random-numbers.sh diff --git a/054-number-parsing/number-parsing.go b/052-number-parsing/number-parsing.go similarity index 100% rename from 054-number-parsing/number-parsing.go rename to 052-number-parsing/number-parsing.go diff --git a/054-number-parsing/number-parsing.sh b/052-number-parsing/number-parsing.sh similarity index 100% rename from 054-number-parsing/number-parsing.sh rename to 052-number-parsing/number-parsing.sh diff --git a/056-urls/urls.go b/054-urls/urls.go similarity index 100% rename from 056-urls/urls.go rename to 054-urls/urls.go diff --git a/056-urls/urls.sh b/054-urls/urls.sh similarity index 100% rename from 056-urls/urls.sh rename to 054-urls/urls.sh diff --git a/058-file-open/file-open.go b/056-file-open/file-open.go similarity index 100% rename from 058-file-open/file-open.go rename to 056-file-open/file-open.go diff --git a/059-file-read/file-read.go b/057-file-read/file-read.go similarity index 100% rename from 059-file-read/file-read.go rename to 057-file-read/file-read.go diff --git a/060-file-write/file-write.go b/058-file-write/file-write.go similarity index 100% rename from 060-file-write/file-write.go rename to 058-file-write/file-write.go diff --git a/061-command-line-arguments/command-line-arguments.go b/059-command-line-arguments/command-line-arguments.go similarity index 100% rename from 061-command-line-arguments/command-line-arguments.go rename to 059-command-line-arguments/command-line-arguments.go diff --git a/061-command-line-arguments/command-line-arguments.sh b/059-command-line-arguments/command-line-arguments.sh similarity index 100% rename from 061-command-line-arguments/command-line-arguments.sh rename to 059-command-line-arguments/command-line-arguments.sh diff --git a/062-command-line-flags/command-line-flags.go b/060-command-line-flags/command-line-flags.go similarity index 100% rename from 062-command-line-flags/command-line-flags.go rename to 060-command-line-flags/command-line-flags.go diff --git a/063-env/env.go b/061-env/env.go similarity index 100% rename from 063-env/env.go rename to 061-env/env.go diff --git a/063-env/env.sh b/061-env/env.sh similarity index 100% rename from 063-env/env.sh rename to 061-env/env.sh diff --git a/064-signals/signals.go b/062-signals/signals.go similarity index 100% rename from 064-signals/signals.go rename to 062-signals/signals.go diff --git a/064-signals/signals.sh b/062-signals/signals.sh similarity index 100% rename from 064-signals/signals.sh rename to 062-signals/signals.sh diff --git a/065-exit/exit.go b/063-exit/exit.go similarity index 100% rename from 065-exit/exit.go rename to 063-exit/exit.go diff --git a/065-exit/exit.sh b/063-exit/exit.sh similarity index 100% rename from 065-exit/exit.sh rename to 063-exit/exit.sh diff --git a/066-spawn/spawn.go b/064-spawn/spawn.go similarity index 100% rename from 066-spawn/spawn.go rename to 064-spawn/spawn.go diff --git a/066-spawn/spawn.sh b/064-spawn/spawn.sh similarity index 100% rename from 066-spawn/spawn.sh rename to 064-spawn/spawn.sh diff --git a/067-exec/exec.go b/065-exec/exec.go similarity index 100% rename from 067-exec/exec.go rename to 065-exec/exec.go diff --git a/068-reading-input/reading-input.go b/066-reading-input/reading-input.go similarity index 100% rename from 068-reading-input/reading-input.go rename to 066-reading-input/reading-input.go diff --git a/068-reading-input/reading-input.sh b/066-reading-input/reading-input.sh similarity index 100% rename from 068-reading-input/reading-input.sh rename to 066-reading-input/reading-input.sh diff --git a/069-users/users.go b/067-users/users.go similarity index 100% rename from 069-users/users.go rename to 067-users/users.go diff --git a/069-users/users.sh b/067-users/users.sh similarity index 100% rename from 069-users/users.sh rename to 067-users/users.sh diff --git a/070-line-filter/line-filter.go b/068-line-filter/line-filter.go similarity index 100% rename from 070-line-filter/line-filter.go rename to 068-line-filter/line-filter.go diff --git a/070-line-filter/line-filter.sh b/068-line-filter/line-filter.sh similarity index 100% rename from 070-line-filter/line-filter.sh rename to 068-line-filter/line-filter.sh diff --git a/072-tcp-client/tcp-client.go b/070-tcp-client/tcp-client.go similarity index 100% rename from 072-tcp-client/tcp-client.go rename to 070-tcp-client/tcp-client.go diff --git a/072-tcp-client/tcp-client.sh b/070-tcp-client/tcp-client.sh similarity index 100% rename from 072-tcp-client/tcp-client.sh rename to 070-tcp-client/tcp-client.sh diff --git a/073-http-client/http-client.go b/071-http-client/http-client.go similarity index 100% rename from 073-http-client/http-client.go rename to 071-http-client/http-client.go diff --git a/074-http-client-basic/http-client-basic.go b/072-http-client-basic/http-client-basic.go similarity index 100% rename from 074-http-client-basic/http-client-basic.go rename to 072-http-client-basic/http-client-basic.go diff --git a/075-https-client/https-client.go b/073-https-client/https-client.go similarity index 100% rename from 075-https-client/https-client.go rename to 073-https-client/https-client.go diff --git a/076-redis/redis.go b/074-redis/redis.go similarity index 100% rename from 076-redis/redis.go rename to 074-redis/redis.go diff --git a/076-redis/redis.sh b/074-redis/redis.sh similarity index 100% rename from 076-redis/redis.sh rename to 074-redis/redis.sh diff --git a/077-postgres/postgres.go b/075-postgres/postgres.go similarity index 100% rename from 077-postgres/postgres.go rename to 075-postgres/postgres.go diff --git a/077-postgres/postgres.sh b/075-postgres/postgres.sh similarity index 100% rename from 077-postgres/postgres.sh rename to 075-postgres/postgres.sh diff --git a/078-sending-email/sending-email.go b/076-sending-email/sending-email.go similarity index 100% rename from 078-sending-email/sending-email.go rename to 076-sending-email/sending-email.go diff --git a/079-http-server-basic/http-server-basic.go b/077-http-server-basic/http-server-basic.go similarity index 100% rename from 079-http-server-basic/http-server-basic.go rename to 077-http-server-basic/http-server-basic.go diff --git a/080-http-server-canonical-host/http-server-canonical-host.go b/078-http-server-canonical-host/http-server-canonical-host.go similarity index 100% rename from 080-http-server-canonical-host/http-server-canonical-host.go rename to 078-http-server-canonical-host/http-server-canonical-host.go diff --git a/080-http-server-canonical-host/http-server-canonical-host.sh b/078-http-server-canonical-host/http-server-canonical-host.sh similarity index 100% rename from 080-http-server-canonical-host/http-server-canonical-host.sh rename to 078-http-server-canonical-host/http-server-canonical-host.sh diff --git a/081-http-server-graceful-shutdown/http-server-graceful-shutdown.go b/079-http-server-graceful-shutdown/http-server-graceful-shutdown.go similarity index 100% rename from 081-http-server-graceful-shutdown/http-server-graceful-shutdown.go rename to 079-http-server-graceful-shutdown/http-server-graceful-shutdown.go diff --git a/081-http-server-graceful-shutdown/http-server-graceful-shutdown.sh b/079-http-server-graceful-shutdown/http-server-graceful-shutdown.sh similarity index 100% rename from 081-http-server-graceful-shutdown/http-server-graceful-shutdown.sh rename to 079-http-server-graceful-shutdown/http-server-graceful-shutdown.sh diff --git a/082-http-server-log/http-server-log.go b/080-http-server-log/http-server-log.go similarity index 100% rename from 082-http-server-log/http-server-log.go rename to 080-http-server-log/http-server-log.go diff --git a/083-http-server-middleware/http-server-middleware.go b/081-http-server-middleware/http-server-middleware.go similarity index 100% rename from 083-http-server-middleware/http-server-middleware.go rename to 081-http-server-middleware/http-server-middleware.go diff --git a/084-http-server-routing/http-server-routing.go b/082-http-server-routing/http-server-routing.go similarity index 100% rename from 084-http-server-routing/http-server-routing.go rename to 082-http-server-routing/http-server-routing.go diff --git a/084-http-server-routing/http-server-routing.sh b/082-http-server-routing/http-server-routing.sh similarity index 100% rename from 084-http-server-routing/http-server-routing.sh rename to 082-http-server-routing/http-server-routing.sh diff --git a/085-http-server-static-dynamic/http-server-static-dynamic.go b/083-http-server-static-dynamic/http-server-static-dynamic.go similarity index 100% rename from 085-http-server-static-dynamic/http-server-static-dynamic.go rename to 083-http-server-static-dynamic/http-server-static-dynamic.go diff --git a/085-http-server-static-dynamic/http-server-static-dynamic.sh b/083-http-server-static-dynamic/http-server-static-dynamic.sh similarity index 100% rename from 085-http-server-static-dynamic/http-server-static-dynamic.sh rename to 083-http-server-static-dynamic/http-server-static-dynamic.sh diff --git a/086-http-server-static-select/http-server-static-select.go b/084-http-server-static-select/http-server-static-select.go similarity index 100% rename from 086-http-server-static-select/http-server-static-select.go rename to 084-http-server-static-select/http-server-static-select.go diff --git a/086-http-server-static-select/http-server-static-select.sh b/084-http-server-static-select/http-server-static-select.sh similarity index 100% rename from 086-http-server-static-select/http-server-static-select.sh rename to 084-http-server-static-select/http-server-static-select.sh diff --git a/087-http-server-static/http-server-static.go b/085-http-server-static/http-server-static.go similarity index 100% rename from 087-http-server-static/http-server-static.go rename to 085-http-server-static/http-server-static.go diff --git a/087-http-server-static/http-server-static.sh b/085-http-server-static/http-server-static.sh similarity index 100% rename from 087-http-server-static/http-server-static.sh rename to 085-http-server-static/http-server-static.sh diff --git a/088-http-server-status-code/http-server-status-code.go b/086-http-server-status-code/http-server-status-code.go similarity index 100% rename from 088-http-server-status-code/http-server-status-code.go rename to 086-http-server-status-code/http-server-status-code.go diff --git a/088-http-server-status-code/http-server-status-code.sh b/086-http-server-status-code/http-server-status-code.sh similarity index 100% rename from 088-http-server-status-code/http-server-status-code.sh rename to 086-http-server-status-code/http-server-status-code.sh diff --git a/089-http-server/http-server.go b/087-http-server/http-server.go similarity index 100% rename from 089-http-server/http-server.go rename to 087-http-server/http-server.go diff --git a/090-https-server/https-server.go b/088-https-server/https-server.go similarity index 100% rename from 090-https-server/https-server.go rename to 088-https-server/https-server.go diff --git a/090-https-server/https-server.sh b/088-https-server/https-server.sh similarity index 100% rename from 090-https-server/https-server.sh rename to 088-https-server/https-server.sh diff --git a/tool/index.txt b/tool/index.txt index b42f143..d95e12a 100644 --- a/tool/index.txt +++ b/tool/index.txt @@ -22,16 +22,14 @@ closures recursion defer panic -recover pointers new structs -struct-fields methods embedding interfaces -ok-guards errors +ok-guards ~ comments # concurrency