├── ERRATA.md ├── LICENSE ├── README.md └── src ├── chp1 └── webform │ ├── cmd │ └── webform │ │ └── main.go │ ├── internal │ └── routes │ │ └── routes.go │ ├── pkg │ └── commentdb │ │ └── initdb.go │ └── web │ └── static │ └── form.html ├── chp10 ├── connection-pool │ └── main.go ├── fanin │ └── main.go ├── parallel-pipeline │ └── main.go ├── simple-pipeline │ └── main.go ├── sorting-fanin │ └── main.go ├── streaming │ └── main.go ├── workerpool-dynamic │ └── main.go └── workerpool-fixed │ └── main.go ├── chp11 ├── custom-marshal-hexkey │ └── main.go ├── custom-marshal-keys │ └── main.go ├── custom-marshaling │ └── main.go ├── dynamic-keys │ └── main.go ├── encode-decode │ └── main.go ├── missing-fields │ └── main.go ├── nonstring-keys │ └── main.go ├── polymorphic-unmarshal │ └── main.go └── stream │ └── main.go ├── chp12 ├── namedpipe │ ├── reader │ │ └── main.go │ └── writer │ │ └── main.go ├── process │ ├── main.go │ └── sub │ │ └── main.go ├── shell │ └── main.go ├── signal │ └── main.go ├── stdin │ ├── main.go │ └── romeo-and-juliet.txt └── stdinpipe │ ├── main.go │ └── romeo-and-juliet.txt ├── chp13 ├── echo-client-server-lines │ ├── client │ │ └── main.go │ └── server │ │ └── main.go ├── echo-client-server │ ├── client │ │ └── main.go │ └── server │ │ └── main.go ├── html-forms │ └── main.go ├── http-calls │ └── main.go ├── http-rnd-service │ ├── main.go │ └── readme.md ├── http-static-files │ └── main.go ├── http-tls │ ├── client │ │ └── main.go │ ├── config.ext │ ├── readme.md │ └── server │ │ └── main.go ├── http-upload │ └── main.go ├── tcp-file-transfer │ ├── receiver │ │ └── main.go │ └── sender │ │ └── main.go ├── timeout │ └── main.go ├── tls │ ├── client │ │ └── main.go │ ├── config.ext │ ├── proxy │ │ └── main.go │ ├── readme.md │ └── server │ │ └── main.go └── udp-client-server │ ├── client │ └── main.go │ └── server │ └── main.go ├── chp14 ├── binary │ └── main.go ├── copy │ └── main.go ├── open-create │ ├── main.go │ └── test.txt ├── pipe │ └── main.go ├── seek │ └── main.go └── tee │ └── main.go ├── chp15 ├── mysql-connection │ └── main.go ├── postgresql-queryvalues │ └── main.go ├── postgresql-running-statements │ └── main.go └── postgresql-transactions │ └── main.go ├── chp16 ├── slog │ └── main.go └── stdlogger │ └── main.go ├── chp17 └── sorting │ ├── main.go │ ├── service │ ├── service.go │ └── service_test.go │ └── sort │ ├── sort.go │ └── sort_test.go ├── chp2 ├── diacritics │ └── main.go ├── encoding │ ├── ascii.txt │ └── main.go ├── formatted-text │ └── main.go ├── join │ └── main.go ├── regex-match │ └── main.go ├── regex-replace │ └── main.go ├── regex-submatch │ └── main.go ├── regex-validation │ └── main.go ├── scanner │ └── main.go ├── split │ └── main.go ├── stringadd-benchmark │ └── add_test.go ├── template-basics │ └── main.go ├── template-composition │ └── main.go ├── template-composition2 │ └── main.go ├── template-empty-lines │ └── main.go ├── template-layout │ └── main.go ├── template-scoping │ └── main.go └── trim │ └── main.go ├── chp3 ├── format │ └── main.go └── ticker │ └── main.go ├── chp4 ├── blockingcache │ └── main.go ├── cache │ └── main.go ├── compositekeys │ └── main.go ├── slices │ └── main.go └── stringset │ └── main.go ├── chp5 ├── authenticator │ ├── basicauth.go │ ├── factory.go │ └── main.go ├── embedding │ └── main.go └── enums │ └── main.go ├── chp6 ├── adapters │ └── main.go ├── orderedmap │ └── main.go ├── set │ └── main.go └── sum │ └── main.go ├── chp7 ├── channels │ └── main.go └── concurrent-download │ └── main.go ├── chp8 ├── chain │ └── main.go ├── change-return-value │ └── main.go ├── recover │ └── main.go ├── stack │ └── main.go ├── structured-errors │ ├── invalid-config.json │ ├── main.go │ └── valid-config.json └── wrapping-errors │ ├── invalid-config.json │ ├── main.go │ └── valid-config.json ├── chp9 ├── cancelation │ └── main.go ├── request-scoped-data │ └── main.go ├── server-timeout │ └── main.go └── timeout │ └── main.go ├── go.mod └── go.sum /ERRATA.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/ERRATA.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/README.md -------------------------------------------------------------------------------- /src/chp1/webform/cmd/webform/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp1/webform/cmd/webform/main.go -------------------------------------------------------------------------------- /src/chp1/webform/internal/routes/routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp1/webform/internal/routes/routes.go -------------------------------------------------------------------------------- /src/chp1/webform/pkg/commentdb/initdb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp1/webform/pkg/commentdb/initdb.go -------------------------------------------------------------------------------- /src/chp1/webform/web/static/form.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp1/webform/web/static/form.html -------------------------------------------------------------------------------- /src/chp10/connection-pool/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp10/connection-pool/main.go -------------------------------------------------------------------------------- /src/chp10/fanin/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp10/fanin/main.go -------------------------------------------------------------------------------- /src/chp10/parallel-pipeline/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp10/parallel-pipeline/main.go -------------------------------------------------------------------------------- /src/chp10/simple-pipeline/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp10/simple-pipeline/main.go -------------------------------------------------------------------------------- /src/chp10/sorting-fanin/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp10/sorting-fanin/main.go -------------------------------------------------------------------------------- /src/chp10/streaming/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp10/streaming/main.go -------------------------------------------------------------------------------- /src/chp10/workerpool-dynamic/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp10/workerpool-dynamic/main.go -------------------------------------------------------------------------------- /src/chp10/workerpool-fixed/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp10/workerpool-fixed/main.go -------------------------------------------------------------------------------- /src/chp11/custom-marshal-hexkey/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp11/custom-marshal-hexkey/main.go -------------------------------------------------------------------------------- /src/chp11/custom-marshal-keys/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp11/custom-marshal-keys/main.go -------------------------------------------------------------------------------- /src/chp11/custom-marshaling/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp11/custom-marshaling/main.go -------------------------------------------------------------------------------- /src/chp11/dynamic-keys/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp11/dynamic-keys/main.go -------------------------------------------------------------------------------- /src/chp11/encode-decode/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp11/encode-decode/main.go -------------------------------------------------------------------------------- /src/chp11/missing-fields/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp11/missing-fields/main.go -------------------------------------------------------------------------------- /src/chp11/nonstring-keys/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp11/nonstring-keys/main.go -------------------------------------------------------------------------------- /src/chp11/polymorphic-unmarshal/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp11/polymorphic-unmarshal/main.go -------------------------------------------------------------------------------- /src/chp11/stream/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp11/stream/main.go -------------------------------------------------------------------------------- /src/chp12/namedpipe/reader/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp12/namedpipe/reader/main.go -------------------------------------------------------------------------------- /src/chp12/namedpipe/writer/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp12/namedpipe/writer/main.go -------------------------------------------------------------------------------- /src/chp12/process/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp12/process/main.go -------------------------------------------------------------------------------- /src/chp12/process/sub/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp12/process/sub/main.go -------------------------------------------------------------------------------- /src/chp12/shell/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp12/shell/main.go -------------------------------------------------------------------------------- /src/chp12/signal/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp12/signal/main.go -------------------------------------------------------------------------------- /src/chp12/stdin/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp12/stdin/main.go -------------------------------------------------------------------------------- /src/chp12/stdin/romeo-and-juliet.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp12/stdin/romeo-and-juliet.txt -------------------------------------------------------------------------------- /src/chp12/stdinpipe/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp12/stdinpipe/main.go -------------------------------------------------------------------------------- /src/chp12/stdinpipe/romeo-and-juliet.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp12/stdinpipe/romeo-and-juliet.txt -------------------------------------------------------------------------------- /src/chp13/echo-client-server-lines/client/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/echo-client-server-lines/client/main.go -------------------------------------------------------------------------------- /src/chp13/echo-client-server-lines/server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/echo-client-server-lines/server/main.go -------------------------------------------------------------------------------- /src/chp13/echo-client-server/client/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/echo-client-server/client/main.go -------------------------------------------------------------------------------- /src/chp13/echo-client-server/server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/echo-client-server/server/main.go -------------------------------------------------------------------------------- /src/chp13/html-forms/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/html-forms/main.go -------------------------------------------------------------------------------- /src/chp13/http-calls/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/http-calls/main.go -------------------------------------------------------------------------------- /src/chp13/http-rnd-service/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/http-rnd-service/main.go -------------------------------------------------------------------------------- /src/chp13/http-rnd-service/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/http-rnd-service/readme.md -------------------------------------------------------------------------------- /src/chp13/http-static-files/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/http-static-files/main.go -------------------------------------------------------------------------------- /src/chp13/http-tls/client/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/http-tls/client/main.go -------------------------------------------------------------------------------- /src/chp13/http-tls/config.ext: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/http-tls/config.ext -------------------------------------------------------------------------------- /src/chp13/http-tls/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/http-tls/readme.md -------------------------------------------------------------------------------- /src/chp13/http-tls/server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/http-tls/server/main.go -------------------------------------------------------------------------------- /src/chp13/http-upload/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/http-upload/main.go -------------------------------------------------------------------------------- /src/chp13/tcp-file-transfer/receiver/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/tcp-file-transfer/receiver/main.go -------------------------------------------------------------------------------- /src/chp13/tcp-file-transfer/sender/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/tcp-file-transfer/sender/main.go -------------------------------------------------------------------------------- /src/chp13/timeout/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/timeout/main.go -------------------------------------------------------------------------------- /src/chp13/tls/client/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/tls/client/main.go -------------------------------------------------------------------------------- /src/chp13/tls/config.ext: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/tls/config.ext -------------------------------------------------------------------------------- /src/chp13/tls/proxy/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/tls/proxy/main.go -------------------------------------------------------------------------------- /src/chp13/tls/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/tls/readme.md -------------------------------------------------------------------------------- /src/chp13/tls/server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/tls/server/main.go -------------------------------------------------------------------------------- /src/chp13/udp-client-server/client/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/udp-client-server/client/main.go -------------------------------------------------------------------------------- /src/chp13/udp-client-server/server/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp13/udp-client-server/server/main.go -------------------------------------------------------------------------------- /src/chp14/binary/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp14/binary/main.go -------------------------------------------------------------------------------- /src/chp14/copy/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp14/copy/main.go -------------------------------------------------------------------------------- /src/chp14/open-create/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp14/open-create/main.go -------------------------------------------------------------------------------- /src/chp14/open-create/test.txt: -------------------------------------------------------------------------------- 1 | Hello world! 2 | -------------------------------------------------------------------------------- /src/chp14/pipe/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp14/pipe/main.go -------------------------------------------------------------------------------- /src/chp14/seek/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp14/seek/main.go -------------------------------------------------------------------------------- /src/chp14/tee/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp14/tee/main.go -------------------------------------------------------------------------------- /src/chp15/mysql-connection/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp15/mysql-connection/main.go -------------------------------------------------------------------------------- /src/chp15/postgresql-queryvalues/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp15/postgresql-queryvalues/main.go -------------------------------------------------------------------------------- /src/chp15/postgresql-running-statements/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp15/postgresql-running-statements/main.go -------------------------------------------------------------------------------- /src/chp15/postgresql-transactions/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp15/postgresql-transactions/main.go -------------------------------------------------------------------------------- /src/chp16/slog/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp16/slog/main.go -------------------------------------------------------------------------------- /src/chp16/stdlogger/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp16/stdlogger/main.go -------------------------------------------------------------------------------- /src/chp17/sorting/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp17/sorting/main.go -------------------------------------------------------------------------------- /src/chp17/sorting/service/service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp17/sorting/service/service.go -------------------------------------------------------------------------------- /src/chp17/sorting/service/service_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp17/sorting/service/service_test.go -------------------------------------------------------------------------------- /src/chp17/sorting/sort/sort.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp17/sorting/sort/sort.go -------------------------------------------------------------------------------- /src/chp17/sorting/sort/sort_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp17/sorting/sort/sort_test.go -------------------------------------------------------------------------------- /src/chp2/diacritics/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/diacritics/main.go -------------------------------------------------------------------------------- /src/chp2/encoding/ascii.txt: -------------------------------------------------------------------------------- 1 | This is an ASCII text file. 2 | -------------------------------------------------------------------------------- /src/chp2/encoding/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/encoding/main.go -------------------------------------------------------------------------------- /src/chp2/formatted-text/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/formatted-text/main.go -------------------------------------------------------------------------------- /src/chp2/join/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/join/main.go -------------------------------------------------------------------------------- /src/chp2/regex-match/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/regex-match/main.go -------------------------------------------------------------------------------- /src/chp2/regex-replace/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/regex-replace/main.go -------------------------------------------------------------------------------- /src/chp2/regex-submatch/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/regex-submatch/main.go -------------------------------------------------------------------------------- /src/chp2/regex-validation/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/regex-validation/main.go -------------------------------------------------------------------------------- /src/chp2/scanner/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/scanner/main.go -------------------------------------------------------------------------------- /src/chp2/split/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/split/main.go -------------------------------------------------------------------------------- /src/chp2/stringadd-benchmark/add_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/stringadd-benchmark/add_test.go -------------------------------------------------------------------------------- /src/chp2/template-basics/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/template-basics/main.go -------------------------------------------------------------------------------- /src/chp2/template-composition/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/template-composition/main.go -------------------------------------------------------------------------------- /src/chp2/template-composition2/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/template-composition2/main.go -------------------------------------------------------------------------------- /src/chp2/template-empty-lines/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/template-empty-lines/main.go -------------------------------------------------------------------------------- /src/chp2/template-layout/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/template-layout/main.go -------------------------------------------------------------------------------- /src/chp2/template-scoping/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/template-scoping/main.go -------------------------------------------------------------------------------- /src/chp2/trim/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp2/trim/main.go -------------------------------------------------------------------------------- /src/chp3/format/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp3/format/main.go -------------------------------------------------------------------------------- /src/chp3/ticker/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp3/ticker/main.go -------------------------------------------------------------------------------- /src/chp4/blockingcache/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp4/blockingcache/main.go -------------------------------------------------------------------------------- /src/chp4/cache/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp4/cache/main.go -------------------------------------------------------------------------------- /src/chp4/compositekeys/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp4/compositekeys/main.go -------------------------------------------------------------------------------- /src/chp4/slices/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp4/slices/main.go -------------------------------------------------------------------------------- /src/chp4/stringset/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp4/stringset/main.go -------------------------------------------------------------------------------- /src/chp5/authenticator/basicauth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp5/authenticator/basicauth.go -------------------------------------------------------------------------------- /src/chp5/authenticator/factory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp5/authenticator/factory.go -------------------------------------------------------------------------------- /src/chp5/authenticator/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp5/authenticator/main.go -------------------------------------------------------------------------------- /src/chp5/embedding/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp5/embedding/main.go -------------------------------------------------------------------------------- /src/chp5/enums/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp5/enums/main.go -------------------------------------------------------------------------------- /src/chp6/adapters/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp6/adapters/main.go -------------------------------------------------------------------------------- /src/chp6/orderedmap/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp6/orderedmap/main.go -------------------------------------------------------------------------------- /src/chp6/set/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp6/set/main.go -------------------------------------------------------------------------------- /src/chp6/sum/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp6/sum/main.go -------------------------------------------------------------------------------- /src/chp7/channels/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp7/channels/main.go -------------------------------------------------------------------------------- /src/chp7/concurrent-download/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp7/concurrent-download/main.go -------------------------------------------------------------------------------- /src/chp8/chain/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp8/chain/main.go -------------------------------------------------------------------------------- /src/chp8/change-return-value/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp8/change-return-value/main.go -------------------------------------------------------------------------------- /src/chp8/recover/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp8/recover/main.go -------------------------------------------------------------------------------- /src/chp8/stack/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp8/stack/main.go -------------------------------------------------------------------------------- /src/chp8/structured-errors/invalid-config.json: -------------------------------------------------------------------------------- 1 | This is an invalid configuration file 2 | -------------------------------------------------------------------------------- /src/chp8/structured-errors/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp8/structured-errors/main.go -------------------------------------------------------------------------------- /src/chp8/structured-errors/valid-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "option": "value" 3 | } 4 | -------------------------------------------------------------------------------- /src/chp8/wrapping-errors/invalid-config.json: -------------------------------------------------------------------------------- 1 | This is an invalid configuration file 2 | -------------------------------------------------------------------------------- /src/chp8/wrapping-errors/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp8/wrapping-errors/main.go -------------------------------------------------------------------------------- /src/chp8/wrapping-errors/valid-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "option": "value" 3 | } 4 | -------------------------------------------------------------------------------- /src/chp9/cancelation/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp9/cancelation/main.go -------------------------------------------------------------------------------- /src/chp9/request-scoped-data/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp9/request-scoped-data/main.go -------------------------------------------------------------------------------- /src/chp9/server-timeout/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp9/server-timeout/main.go -------------------------------------------------------------------------------- /src/chp9/timeout/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/chp9/timeout/main.go -------------------------------------------------------------------------------- /src/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/go.mod -------------------------------------------------------------------------------- /src/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Go-Recipes-for-Developers/HEAD/src/go.sum --------------------------------------------------------------------------------