diff --git a/src/arrays/arrays.go b/examples/arrays/arrays.go similarity index 100% rename from src/arrays/arrays.go rename to examples/arrays/arrays.go diff --git a/src/base64-encoding/base64-encoding.go b/examples/base64-encoding/base64-encoding.go similarity index 100% rename from src/base64-encoding/base64-encoding.go rename to examples/base64-encoding/base64-encoding.go diff --git a/src/basic-authentication/basic-authentication.go b/examples/basic-authentication/basic-authentication.go similarity index 100% rename from src/basic-authentication/basic-authentication.go rename to examples/basic-authentication/basic-authentication.go diff --git a/src/bytes/bytes.go b/examples/bytes/bytes.go similarity index 100% rename from src/bytes/bytes.go rename to examples/bytes/bytes.go diff --git a/src/canonical-hosts/canonical-hosts.go b/examples/canonical-hosts/canonical-hosts.go similarity index 100% rename from src/canonical-hosts/canonical-hosts.go rename to examples/canonical-hosts/canonical-hosts.go diff --git a/src/canonical-hosts/canonical-hosts.sh b/examples/canonical-hosts/canonical-hosts.sh similarity index 100% rename from src/canonical-hosts/canonical-hosts.sh rename to examples/canonical-hosts/canonical-hosts.sh diff --git a/src/channel-buffering/channel-buffering.go b/examples/channel-buffering/channel-buffering.go similarity index 100% rename from src/channel-buffering/channel-buffering.go rename to examples/channel-buffering/channel-buffering.go diff --git a/src/channel-directions/channel-directions.go b/examples/channel-directions/channel-directions.go similarity index 100% rename from src/channel-directions/channel-directions.go rename to examples/channel-directions/channel-directions.go diff --git a/src/channels/channels.go b/examples/channels/channels.go similarity index 100% rename from src/channels/channels.go rename to examples/channels/channels.go diff --git a/src/closing-channels/closing-channels.go b/examples/closing-channels/closing-channels.go similarity index 100% rename from src/closing-channels/closing-channels.go rename to examples/closing-channels/closing-channels.go diff --git a/src/closures/closures.go b/examples/closures/closures.go similarity index 100% rename from src/closures/closures.go rename to examples/closures/closures.go diff --git a/src/collection-functions/collection-functions.go b/examples/collection-functions/collection-functions.go similarity index 100% rename from src/collection-functions/collection-functions.go rename to examples/collection-functions/collection-functions.go diff --git a/src/command-line-arguments/command-line-arguments.go b/examples/command-line-arguments/command-line-arguments.go similarity index 100% rename from src/command-line-arguments/command-line-arguments.go rename to examples/command-line-arguments/command-line-arguments.go diff --git a/src/command-line-arguments/command-line-arguments.sh b/examples/command-line-arguments/command-line-arguments.sh similarity index 100% rename from src/command-line-arguments/command-line-arguments.sh rename to examples/command-line-arguments/command-line-arguments.sh diff --git a/src/command-line-flags/command-line-flags.go b/examples/command-line-flags/command-line-flags.go similarity index 100% rename from src/command-line-flags/command-line-flags.go rename to examples/command-line-flags/command-line-flags.go diff --git a/src/concurrent-goroutines/concurrent-goroutines.go b/examples/concurrent-goroutines/concurrent-goroutines.go similarity index 100% rename from src/concurrent-goroutines/concurrent-goroutines.go rename to examples/concurrent-goroutines/concurrent-goroutines.go diff --git a/src/constants/constants.go b/examples/constants/constants.go similarity index 100% rename from src/constants/constants.go rename to examples/constants/constants.go diff --git a/src/constants/constants.sh b/examples/constants/constants.sh similarity index 100% rename from src/constants/constants.sh rename to examples/constants/constants.sh diff --git a/src/defer/defer.go b/examples/defer/defer.go similarity index 100% rename from src/defer/defer.go rename to examples/defer/defer.go diff --git a/src/elapsed-time/elapsed-time.go b/examples/elapsed-time/elapsed-time.go similarity index 100% rename from src/elapsed-time/elapsed-time.go rename to examples/elapsed-time/elapsed-time.go diff --git a/src/embedding/embedding.go b/examples/embedding/embedding.go similarity index 100% rename from src/embedding/embedding.go rename to examples/embedding/embedding.go diff --git a/src/environment-variables/environment-variables.go b/examples/environment-variables/environment-variables.go similarity index 100% rename from src/environment-variables/environment-variables.go rename to examples/environment-variables/environment-variables.go diff --git a/src/environment-variables/environment-variables.sh b/examples/environment-variables/environment-variables.sh similarity index 100% rename from src/environment-variables/environment-variables.sh rename to examples/environment-variables/environment-variables.sh diff --git a/src/epochs/epochs.go b/examples/epochs/epochs.go similarity index 100% rename from src/epochs/epochs.go rename to examples/epochs/epochs.go diff --git a/src/epochs/epochs.sh b/examples/epochs/epochs.sh similarity index 100% rename from src/epochs/epochs.sh rename to examples/epochs/epochs.sh diff --git a/src/errors/errors.go b/examples/errors/errors.go similarity index 100% rename from src/errors/errors.go rename to examples/errors/errors.go diff --git a/src/execing-processes/execing-processes.go b/examples/execing-processes/execing-processes.go similarity index 100% rename from src/execing-processes/execing-processes.go rename to examples/execing-processes/execing-processes.go diff --git a/src/execing-processes/execing-processes.sh b/examples/execing-processes/execing-processes.sh similarity index 100% rename from src/execing-processes/execing-processes.sh rename to examples/execing-processes/execing-processes.sh diff --git a/src/exit/exit.go b/examples/exit/exit.go similarity index 100% rename from src/exit/exit.go rename to examples/exit/exit.go diff --git a/src/exit/exit.sh b/examples/exit/exit.sh similarity index 100% rename from src/exit/exit.sh rename to examples/exit/exit.sh diff --git a/src/for/for.go b/examples/for/for.go similarity index 100% rename from src/for/for.go rename to examples/for/for.go diff --git a/src/for/for.sh b/examples/for/for.sh similarity index 100% rename from src/for/for.sh rename to examples/for/for.sh diff --git a/src/functions/functions.go b/examples/functions/functions.go similarity index 100% rename from src/functions/functions.go rename to examples/functions/functions.go diff --git a/src/goroutines/goroutines.go b/examples/goroutines/goroutines.go similarity index 100% rename from src/goroutines/goroutines.go rename to examples/goroutines/goroutines.go diff --git a/src/graceful-shutdown/graceful-shutdown.go b/examples/graceful-shutdown/graceful-shutdown.go similarity index 100% rename from src/graceful-shutdown/graceful-shutdown.go rename to examples/graceful-shutdown/graceful-shutdown.go diff --git a/src/graceful-shutdown/graceful-shutdown.sh b/examples/graceful-shutdown/graceful-shutdown.sh similarity index 100% rename from src/graceful-shutdown/graceful-shutdown.sh rename to examples/graceful-shutdown/graceful-shutdown.sh diff --git a/src/hello-web/hello-web.go b/examples/hello-web/hello-web.go similarity index 100% rename from src/hello-web/hello-web.go rename to examples/hello-web/hello-web.go diff --git a/src/hello-world/hello-world.go b/examples/hello-world/hello-world.go similarity index 100% rename from src/hello-world/hello-world.go rename to examples/hello-world/hello-world.go diff --git a/src/hello-world/hello-world.sh b/examples/hello-world/hello-world.sh similarity index 100% rename from src/hello-world/hello-world.sh rename to examples/hello-world/hello-world.sh diff --git a/src/http-client/http-client.go b/examples/http-client/http-client.go similarity index 100% rename from src/http-client/http-client.go rename to examples/http-client/http-client.go diff --git a/src/https-client/https-client.go b/examples/https-client/https-client.go similarity index 100% rename from src/https-client/https-client.go rename to examples/https-client/https-client.go diff --git a/src/https-servers/https-servers.go b/examples/https-servers/https-servers.go similarity index 100% rename from src/https-servers/https-servers.go rename to examples/https-servers/https-servers.go diff --git a/src/https-servers/https-servers.sh b/examples/https-servers/https-servers.sh similarity index 100% rename from src/https-servers/https-servers.sh rename to examples/https-servers/https-servers.sh diff --git a/src/if-else/if-else.go b/examples/if-else/if-else.go similarity index 100% rename from src/if-else/if-else.go rename to examples/if-else/if-else.go diff --git a/src/if-else/if-else.sh b/examples/if-else/if-else.sh similarity index 100% rename from src/if-else/if-else.sh rename to examples/if-else/if-else.sh diff --git a/src/interfaces/interfaces.go b/examples/interfaces/interfaces.go similarity index 100% rename from src/interfaces/interfaces.go rename to examples/interfaces/interfaces.go diff --git a/src/json/json.go b/examples/json/json.go similarity index 100% rename from src/json/json.go rename to examples/json/json.go diff --git a/src/line-filters/line-filters.go b/examples/line-filters/line-filters.go similarity index 100% rename from src/line-filters/line-filters.go rename to examples/line-filters/line-filters.go diff --git a/src/line-filters/line-filters.sh b/examples/line-filters/line-filters.sh similarity index 100% rename from src/line-filters/line-filters.sh rename to examples/line-filters/line-filters.sh diff --git a/src/maps/maps.go b/examples/maps/maps.go similarity index 100% rename from src/maps/maps.go rename to examples/maps/maps.go diff --git a/src/maps/maps.sh b/examples/maps/maps.sh similarity index 100% rename from src/maps/maps.sh rename to examples/maps/maps.sh diff --git a/src/methods/methods.go b/examples/methods/methods.go similarity index 100% rename from src/methods/methods.go rename to examples/methods/methods.go diff --git a/src/middleware/middleware.go b/examples/middleware/middleware.go similarity index 100% rename from src/middleware/middleware.go rename to examples/middleware/middleware.go diff --git a/src/middleware/middleware.sh b/examples/middleware/middleware.sh similarity index 100% rename from src/middleware/middleware.sh rename to examples/middleware/middleware.sh diff --git a/src/multiple-return-values/multiple-return-values.go b/examples/multiple-return-values/multiple-return-values.go similarity index 100% rename from src/multiple-return-values/multiple-return-values.go rename to examples/multiple-return-values/multiple-return-values.go diff --git a/src/multiple-return-values/multiple-return-values.sh b/examples/multiple-return-values/multiple-return-values.sh similarity index 100% rename from src/multiple-return-values/multiple-return-values.sh rename to examples/multiple-return-values/multiple-return-values.sh diff --git a/src/new/new.go b/examples/new/new.go similarity index 100% rename from src/new/new.go rename to examples/new/new.go diff --git a/src/non-blocking-channel-operations/non-blocking-channel-operations.go b/examples/non-blocking-channel-operations/non-blocking-channel-operations.go similarity index 100% rename from src/non-blocking-channel-operations/non-blocking-channel-operations.go rename to examples/non-blocking-channel-operations/non-blocking-channel-operations.go diff --git a/src/number-parsing/number-parsing.go b/examples/number-parsing/number-parsing.go similarity index 100% rename from src/number-parsing/number-parsing.go rename to examples/number-parsing/number-parsing.go diff --git a/src/number-parsing/number-parsing.sh b/examples/number-parsing/number-parsing.sh similarity index 100% rename from src/number-parsing/number-parsing.sh rename to examples/number-parsing/number-parsing.sh diff --git a/src/ok-guards/ok-guards.go b/examples/ok-guards/ok-guards.go similarity index 100% rename from src/ok-guards/ok-guards.go rename to examples/ok-guards/ok-guards.go diff --git a/src/panic/panic.go b/examples/panic/panic.go similarity index 100% rename from src/panic/panic.go rename to examples/panic/panic.go diff --git a/src/panic/panic.sh b/examples/panic/panic.sh similarity index 100% rename from src/panic/panic.sh rename to examples/panic/panic.sh diff --git a/src/pointers/pointers.go b/examples/pointers/pointers.go similarity index 100% rename from src/pointers/pointers.go rename to examples/pointers/pointers.go diff --git a/src/postgres/postgres.go b/examples/postgres/postgres.go similarity index 100% rename from src/postgres/postgres.go rename to examples/postgres/postgres.go diff --git a/src/postgres/postgres.sh b/examples/postgres/postgres.sh similarity index 100% rename from src/postgres/postgres.sh rename to examples/postgres/postgres.sh diff --git a/src/random-numbers/random-numbers.go b/examples/random-numbers/random-numbers.go similarity index 100% rename from src/random-numbers/random-numbers.go rename to examples/random-numbers/random-numbers.go diff --git a/src/random-numbers/random-numbers.sh b/examples/random-numbers/random-numbers.sh similarity index 100% rename from src/random-numbers/random-numbers.sh rename to examples/random-numbers/random-numbers.sh diff --git a/src/range/range.go b/examples/range/range.go similarity index 100% rename from src/range/range.go rename to examples/range/range.go diff --git a/src/rate-limiting/rate-limiting.go b/examples/rate-limiting/rate-limiting.go similarity index 100% rename from src/rate-limiting/rate-limiting.go rename to examples/rate-limiting/rate-limiting.go diff --git a/src/reading-files/reading-files.go b/examples/reading-files/reading-files.go similarity index 100% rename from src/reading-files/reading-files.go rename to examples/reading-files/reading-files.go diff --git a/src/recursion/recursion.go b/examples/recursion/recursion.go similarity index 100% rename from src/recursion/recursion.go rename to examples/recursion/recursion.go diff --git a/src/redis/redis.go b/examples/redis/redis.go similarity index 100% rename from src/redis/redis.go rename to examples/redis/redis.go diff --git a/src/redis/redis.sh b/examples/redis/redis.sh similarity index 100% rename from src/redis/redis.sh rename to examples/redis/redis.sh diff --git a/src/regexs/regexs.go b/examples/regexs/regexs.go similarity index 100% rename from src/regexs/regexs.go rename to examples/regexs/regexs.go diff --git a/src/regexs/regexs.sh b/examples/regexs/regexs.sh similarity index 100% rename from src/regexs/regexs.sh rename to examples/regexs/regexs.sh diff --git a/src/request-logging/request-logging.go b/examples/request-logging/request-logging.go similarity index 100% rename from src/request-logging/request-logging.go rename to examples/request-logging/request-logging.go diff --git a/src/request-routing/request-routing.go b/examples/request-routing/request-routing.go similarity index 100% rename from src/request-routing/request-routing.go rename to examples/request-routing/request-routing.go diff --git a/src/request-routing/request-routing.sh b/examples/request-routing/request-routing.sh similarity index 100% rename from src/request-routing/request-routing.sh rename to examples/request-routing/request-routing.sh diff --git a/src/responses/responses.go b/examples/responses/responses.go similarity index 100% rename from src/responses/responses.go rename to examples/responses/responses.go diff --git a/src/responses/responses.sh b/examples/responses/responses.sh similarity index 100% rename from src/responses/responses.sh rename to examples/responses/responses.sh diff --git a/src/scatter-gather/scatter-gather.go b/examples/scatter-gather/scatter-gather.go similarity index 100% rename from src/scatter-gather/scatter-gather.go rename to examples/scatter-gather/scatter-gather.go diff --git a/src/select/select.go b/examples/select/select.go similarity index 100% rename from src/select/select.go rename to examples/select/select.go diff --git a/src/sha1-hashes/sha1-hashes.go b/examples/sha1-hashes/sha1-hashes.go similarity index 100% rename from src/sha1-hashes/sha1-hashes.go rename to examples/sha1-hashes/sha1-hashes.go diff --git a/src/sha1-hashes/sha1-hashes.sh b/examples/sha1-hashes/sha1-hashes.sh similarity index 100% rename from src/sha1-hashes/sha1-hashes.sh rename to examples/sha1-hashes/sha1-hashes.sh diff --git a/src/short-declarations/short-declarations.go b/examples/short-declarations/short-declarations.go similarity index 100% rename from src/short-declarations/short-declarations.go rename to examples/short-declarations/short-declarations.go diff --git a/src/short-declarations/short-declarations.sh b/examples/short-declarations/short-declarations.sh similarity index 100% rename from src/short-declarations/short-declarations.sh rename to examples/short-declarations/short-declarations.sh diff --git a/src/signals/signals.go b/examples/signals/signals.go similarity index 100% rename from src/signals/signals.go rename to examples/signals/signals.go diff --git a/src/signals/signals.sh b/examples/signals/signals.sh similarity index 100% rename from src/signals/signals.sh rename to examples/signals/signals.sh diff --git a/src/slices/slices.go b/examples/slices/slices.go similarity index 100% rename from src/slices/slices.go rename to examples/slices/slices.go diff --git a/src/sorting-by-functions/sorting-by-functions.go b/examples/sorting-by-functions/sorting-by-functions.go similarity index 100% rename from src/sorting-by-functions/sorting-by-functions.go rename to examples/sorting-by-functions/sorting-by-functions.go diff --git a/src/sorting-by-functions/sorting-by-functions.sh b/examples/sorting-by-functions/sorting-by-functions.sh similarity index 100% rename from src/sorting-by-functions/sorting-by-functions.sh rename to examples/sorting-by-functions/sorting-by-functions.sh diff --git a/src/sorting/sorting.go b/examples/sorting/sorting.go similarity index 100% rename from src/sorting/sorting.go rename to examples/sorting/sorting.go diff --git a/src/sorting/sorting.sh b/examples/sorting/sorting.sh similarity index 100% rename from src/sorting/sorting.sh rename to examples/sorting/sorting.sh diff --git a/src/spawning-processes/spawning-processes.go b/examples/spawning-processes/spawning-processes.go similarity index 100% rename from src/spawning-processes/spawning-processes.go rename to examples/spawning-processes/spawning-processes.go diff --git a/src/spawning-processes/spawning-processes.sh b/examples/spawning-processes/spawning-processes.sh similarity index 100% rename from src/spawning-processes/spawning-processes.sh rename to examples/spawning-processes/spawning-processes.sh diff --git a/src/state-goroutine/state-goroutine.go b/examples/state-goroutine/state-goroutine.go similarity index 100% rename from src/state-goroutine/state-goroutine.go rename to examples/state-goroutine/state-goroutine.go diff --git a/src/state-mutex/state-mutex.go b/examples/state-mutex/state-mutex.go similarity index 100% rename from src/state-mutex/state-mutex.go rename to examples/state-mutex/state-mutex.go diff --git a/src/static-content/static-content.go b/examples/static-content/static-content.go similarity index 100% rename from src/static-content/static-content.go rename to examples/static-content/static-content.go diff --git a/src/static-content/static-content.sh b/examples/static-content/static-content.sh similarity index 100% rename from src/static-content/static-content.sh rename to examples/static-content/static-content.sh diff --git a/src/string-formatting/string-formatting.go b/examples/string-formatting/string-formatting.go similarity index 100% rename from src/string-formatting/string-formatting.go rename to examples/string-formatting/string-formatting.go diff --git a/src/string-formatting/string-formatting.sh b/examples/string-formatting/string-formatting.sh similarity index 100% rename from src/string-formatting/string-formatting.sh rename to examples/string-formatting/string-formatting.sh diff --git a/src/string-functions/string-functions.go b/examples/string-functions/string-functions.go similarity index 100% rename from src/string-functions/string-functions.go rename to examples/string-functions/string-functions.go diff --git a/src/string-functions/string-functions.sh b/examples/string-functions/string-functions.sh similarity index 100% rename from src/string-functions/string-functions.sh rename to examples/string-functions/string-functions.sh diff --git a/src/structs/structs.go b/examples/structs/structs.go similarity index 100% rename from src/structs/structs.go rename to examples/structs/structs.go diff --git a/src/switch/switch.go b/examples/switch/switch.go similarity index 100% rename from src/switch/switch.go rename to examples/switch/switch.go diff --git a/src/switch/switch.sh b/examples/switch/switch.sh similarity index 100% rename from src/switch/switch.sh rename to examples/switch/switch.sh diff --git a/src/synchronization/synchronization.go b/examples/synchronization/synchronization.go similarity index 100% rename from src/synchronization/synchronization.go rename to examples/synchronization/synchronization.go diff --git a/src/synchronization/synchronization.sh b/examples/synchronization/synchronization.sh similarity index 100% rename from src/synchronization/synchronization.sh rename to examples/synchronization/synchronization.sh diff --git a/src/tickers/tickers.go b/examples/tickers/tickers.go similarity index 100% rename from src/tickers/tickers.go rename to examples/tickers/tickers.go diff --git a/src/tickers/tickers.sh b/examples/tickers/tickers.sh similarity index 100% rename from src/tickers/tickers.sh rename to examples/tickers/tickers.sh diff --git a/src/time/time.go b/examples/time/time.go similarity index 100% rename from src/time/time.go rename to examples/time/time.go diff --git a/src/time/time.sh b/examples/time/time.sh similarity index 100% rename from src/time/time.sh rename to examples/time/time.sh diff --git a/src/timeouts/timeouts.go b/examples/timeouts/timeouts.go similarity index 100% rename from src/timeouts/timeouts.go rename to examples/timeouts/timeouts.go diff --git a/src/timers/timers.go b/examples/timers/timers.go similarity index 100% rename from src/timers/timers.go rename to examples/timers/timers.go diff --git a/src/timers/timers.sh b/examples/timers/timers.sh similarity index 100% rename from src/timers/timers.sh rename to examples/timers/timers.sh diff --git a/src/urls/urls.go b/examples/urls/urls.go similarity index 100% rename from src/urls/urls.go rename to examples/urls/urls.go diff --git a/src/urls/urls.sh b/examples/urls/urls.sh similarity index 100% rename from src/urls/urls.sh rename to examples/urls/urls.sh diff --git a/src/values/values.go b/examples/values/values.go similarity index 100% rename from src/values/values.go rename to examples/values/values.go diff --git a/src/values/values.sh b/examples/values/values.sh similarity index 100% rename from src/values/values.sh rename to examples/values/values.sh diff --git a/src/varadic-functions/varadic-functions.go b/examples/varadic-functions/varadic-functions.go similarity index 100% rename from src/varadic-functions/varadic-functions.go rename to examples/varadic-functions/varadic-functions.go diff --git a/src/varadic-functions/varadic-functions.sh b/examples/varadic-functions/varadic-functions.sh similarity index 100% rename from src/varadic-functions/varadic-functions.sh rename to examples/varadic-functions/varadic-functions.sh diff --git a/src/variables/variables.go b/examples/variables/variables.go similarity index 100% rename from src/variables/variables.go rename to examples/variables/variables.go diff --git a/src/variables/variables.sh b/examples/variables/variables.sh similarity index 100% rename from src/variables/variables.sh rename to examples/variables/variables.sh diff --git a/src/worker-pools/worker-pools.go b/examples/worker-pools/worker-pools.go similarity index 100% rename from src/worker-pools/worker-pools.go rename to examples/worker-pools/worker-pools.go diff --git a/src/writing-files/writing-files.go b/examples/writing-files/writing-files.go similarity index 100% rename from src/writing-files/writing-files.go rename to examples/writing-files/writing-files.go diff --git a/template/example.tmpl b/template/example.tmpl index 82e7011..7d697cd 100644 --- a/template/example.tmpl +++ b/template/example.tmpl @@ -40,7 +40,7 @@
{{end}}