├── adder ├── adder.go └── adder_test.go ├── countdown ├── countdown.go └── countdown_test.go ├── fintech ├── wallet.go └── wallet_test.go ├── golden-files ├── books │ ├── books.go │ └── books_test.go ├── go.mod ├── go.sum ├── main.go └── report │ ├── report.go │ ├── report_test.go │ └── testdata │ ├── empty_inventory.golden │ └── with_inventory.golden ├── greeter ├── greeter.go └── greeter_test.go ├── hello ├── hello.go └── hello_test.go ├── observer-barebones ├── config.conf ├── go.mod ├── go.sum ├── main.go └── observer ├── observer-signals ├── config.conf ├── go.mod ├── go.sum ├── main.go └── observer ├── observer-stdout ├── config.conf ├── go.mod ├── go.sum └── main.go ├── observer ├── com.ieftimov.observer.plist ├── config.conf ├── go.mod ├── go.sum └── main.go ├── order-notifications ├── go.mod ├── main.go ├── orders │ ├── orders.go │ └── orders_test.go ├── push │ └── push.go ├── sms │ └── sms.go └── user │ └── user.go ├── shapes ├── shapes.go └── shapes_test.go ├── slck-protocol ├── README.md ├── channel.go ├── client.go ├── command.go ├── go.mod ├── hub.go └── main.go ├── snippetbin ├── go.mod ├── go.sum ├── main.go └── snippet.go ├── sum ├── sum.go └── sum_test.go ├── test-doubles ├── main.go └── main_test.go ├── testing-in-go-cleanup ├── .env ├── Dockerfile ├── Makefile ├── bin │ └── server ├── cleanups_test.db ├── docker-compose.yml ├── go.mod ├── go.sum ├── server.go ├── server_test.go └── user.go ├── testing-in-go-fixtures ├── grades.csv ├── main.go ├── main_test.go └── testdata │ └── grades │ ├── empty.csv │ ├── invalid.csv │ └── valid.csv ├── testing-in-go-leak-test-files ├── go.mod ├── go.sum ├── main.go ├── main_test.go └── testdata │ ├── content.pdf │ ├── empty.pdf │ └── input.pdf ├── testing-in-go-web-sockets ├── client.go ├── entities.go ├── go.mod ├── go.sum ├── handlers.go ├── handlers_test.go └── main.go ├── timeouts-deadlines ├── go.mod ├── server.go ├── slow_server.go └── timeout_server.go └── weather-aqi ├── README.md ├── aqi.go ├── cities.csv ├── csv.go ├── darksky.go ├── main.go └── workers.go /adder/adder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/adder/adder.go -------------------------------------------------------------------------------- /adder/adder_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/adder/adder_test.go -------------------------------------------------------------------------------- /countdown/countdown.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/countdown/countdown.go -------------------------------------------------------------------------------- /countdown/countdown_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/countdown/countdown_test.go -------------------------------------------------------------------------------- /fintech/wallet.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/fintech/wallet.go -------------------------------------------------------------------------------- /fintech/wallet_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/fintech/wallet_test.go -------------------------------------------------------------------------------- /golden-files/books/books.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/golden-files/books/books.go -------------------------------------------------------------------------------- /golden-files/books/books_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/golden-files/books/books_test.go -------------------------------------------------------------------------------- /golden-files/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/fteem/go-playground/golden-files 2 | 3 | go 1.13 4 | -------------------------------------------------------------------------------- /golden-files/go.sum: -------------------------------------------------------------------------------- 1 | github.com/fteem/go-playground v0.0.0-20191207230642-b474afdb7399 h1:MopLL1WMrfKPu4pUhhbrUeCOag+unmF8EAYl93pJKYM= 2 | -------------------------------------------------------------------------------- /golden-files/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/golden-files/main.go -------------------------------------------------------------------------------- /golden-files/report/report.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/golden-files/report/report.go -------------------------------------------------------------------------------- /golden-files/report/report_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/golden-files/report/report_test.go -------------------------------------------------------------------------------- /golden-files/report/testdata/empty_inventory.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/golden-files/report/testdata/empty_inventory.golden -------------------------------------------------------------------------------- /golden-files/report/testdata/with_inventory.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/golden-files/report/testdata/with_inventory.golden -------------------------------------------------------------------------------- /greeter/greeter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/greeter/greeter.go -------------------------------------------------------------------------------- /greeter/greeter_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/greeter/greeter_test.go -------------------------------------------------------------------------------- /hello/hello.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/hello/hello.go -------------------------------------------------------------------------------- /hello/hello_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/hello/hello_test.go -------------------------------------------------------------------------------- /observer-barebones/config.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer-barebones/config.conf -------------------------------------------------------------------------------- /observer-barebones/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer-barebones/go.mod -------------------------------------------------------------------------------- /observer-barebones/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer-barebones/go.sum -------------------------------------------------------------------------------- /observer-barebones/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer-barebones/main.go -------------------------------------------------------------------------------- /observer-barebones/observer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer-barebones/observer -------------------------------------------------------------------------------- /observer-signals/config.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer-signals/config.conf -------------------------------------------------------------------------------- /observer-signals/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer-signals/go.mod -------------------------------------------------------------------------------- /observer-signals/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer-signals/go.sum -------------------------------------------------------------------------------- /observer-signals/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer-signals/main.go -------------------------------------------------------------------------------- /observer-signals/observer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer-signals/observer -------------------------------------------------------------------------------- /observer-stdout/config.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer-stdout/config.conf -------------------------------------------------------------------------------- /observer-stdout/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer-stdout/go.mod -------------------------------------------------------------------------------- /observer-stdout/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer-stdout/go.sum -------------------------------------------------------------------------------- /observer-stdout/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer-stdout/main.go -------------------------------------------------------------------------------- /observer/com.ieftimov.observer.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer/com.ieftimov.observer.plist -------------------------------------------------------------------------------- /observer/config.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer/config.conf -------------------------------------------------------------------------------- /observer/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer/go.mod -------------------------------------------------------------------------------- /observer/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer/go.sum -------------------------------------------------------------------------------- /observer/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/observer/main.go -------------------------------------------------------------------------------- /order-notifications/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/fteem/order-notifications 2 | 3 | go 1.12 4 | -------------------------------------------------------------------------------- /order-notifications/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/order-notifications/main.go -------------------------------------------------------------------------------- /order-notifications/orders/orders.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/order-notifications/orders/orders.go -------------------------------------------------------------------------------- /order-notifications/orders/orders_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/order-notifications/orders/orders_test.go -------------------------------------------------------------------------------- /order-notifications/push/push.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/order-notifications/push/push.go -------------------------------------------------------------------------------- /order-notifications/sms/sms.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/order-notifications/sms/sms.go -------------------------------------------------------------------------------- /order-notifications/user/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/order-notifications/user/user.go -------------------------------------------------------------------------------- /shapes/shapes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/shapes/shapes.go -------------------------------------------------------------------------------- /shapes/shapes_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/shapes/shapes_test.go -------------------------------------------------------------------------------- /slck-protocol/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/slck-protocol/README.md -------------------------------------------------------------------------------- /slck-protocol/channel.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/slck-protocol/channel.go -------------------------------------------------------------------------------- /slck-protocol/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/slck-protocol/client.go -------------------------------------------------------------------------------- /slck-protocol/command.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/slck-protocol/command.go -------------------------------------------------------------------------------- /slck-protocol/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/fteem/go-playground/slck-protocol 2 | 3 | go 1.14 4 | -------------------------------------------------------------------------------- /slck-protocol/hub.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/slck-protocol/hub.go -------------------------------------------------------------------------------- /slck-protocol/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/slck-protocol/main.go -------------------------------------------------------------------------------- /snippetbin/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/snippetbin/go.mod -------------------------------------------------------------------------------- /snippetbin/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/snippetbin/go.sum -------------------------------------------------------------------------------- /snippetbin/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/snippetbin/main.go -------------------------------------------------------------------------------- /snippetbin/snippet.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/snippetbin/snippet.go -------------------------------------------------------------------------------- /sum/sum.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/sum/sum.go -------------------------------------------------------------------------------- /sum/sum_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/sum/sum_test.go -------------------------------------------------------------------------------- /test-doubles/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/test-doubles/main.go -------------------------------------------------------------------------------- /test-doubles/main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/test-doubles/main_test.go -------------------------------------------------------------------------------- /testing-in-go-cleanup/.env: -------------------------------------------------------------------------------- 1 | APP_SERVER_HTTP_PORT=8888 2 | -------------------------------------------------------------------------------- /testing-in-go-cleanup/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-cleanup/Dockerfile -------------------------------------------------------------------------------- /testing-in-go-cleanup/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-cleanup/Makefile -------------------------------------------------------------------------------- /testing-in-go-cleanup/bin/server: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-cleanup/bin/server -------------------------------------------------------------------------------- /testing-in-go-cleanup/cleanups_test.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-cleanup/cleanups_test.db -------------------------------------------------------------------------------- /testing-in-go-cleanup/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-cleanup/docker-compose.yml -------------------------------------------------------------------------------- /testing-in-go-cleanup/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-cleanup/go.mod -------------------------------------------------------------------------------- /testing-in-go-cleanup/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-cleanup/go.sum -------------------------------------------------------------------------------- /testing-in-go-cleanup/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-cleanup/server.go -------------------------------------------------------------------------------- /testing-in-go-cleanup/server_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-cleanup/server_test.go -------------------------------------------------------------------------------- /testing-in-go-cleanup/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-cleanup/user.go -------------------------------------------------------------------------------- /testing-in-go-fixtures/grades.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-fixtures/grades.csv -------------------------------------------------------------------------------- /testing-in-go-fixtures/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-fixtures/main.go -------------------------------------------------------------------------------- /testing-in-go-fixtures/main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-fixtures/main_test.go -------------------------------------------------------------------------------- /testing-in-go-fixtures/testdata/grades/empty.csv: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testing-in-go-fixtures/testdata/grades/invalid.csv: -------------------------------------------------------------------------------- 1 | Jane, 2 | John,Biology,A,Foo,Bar 3 | -------------------------------------------------------------------------------- /testing-in-go-fixtures/testdata/grades/valid.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-fixtures/testdata/grades/valid.csv -------------------------------------------------------------------------------- /testing-in-go-leak-test-files/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-leak-test-files/go.mod -------------------------------------------------------------------------------- /testing-in-go-leak-test-files/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-leak-test-files/go.sum -------------------------------------------------------------------------------- /testing-in-go-leak-test-files/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-leak-test-files/main.go -------------------------------------------------------------------------------- /testing-in-go-leak-test-files/main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-leak-test-files/main_test.go -------------------------------------------------------------------------------- /testing-in-go-leak-test-files/testdata/content.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-leak-test-files/testdata/content.pdf -------------------------------------------------------------------------------- /testing-in-go-leak-test-files/testdata/empty.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-leak-test-files/testdata/empty.pdf -------------------------------------------------------------------------------- /testing-in-go-leak-test-files/testdata/input.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-leak-test-files/testdata/input.pdf -------------------------------------------------------------------------------- /testing-in-go-web-sockets/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-web-sockets/client.go -------------------------------------------------------------------------------- /testing-in-go-web-sockets/entities.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-web-sockets/entities.go -------------------------------------------------------------------------------- /testing-in-go-web-sockets/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-web-sockets/go.mod -------------------------------------------------------------------------------- /testing-in-go-web-sockets/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-web-sockets/go.sum -------------------------------------------------------------------------------- /testing-in-go-web-sockets/handlers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-web-sockets/handlers.go -------------------------------------------------------------------------------- /testing-in-go-web-sockets/handlers_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-web-sockets/handlers_test.go -------------------------------------------------------------------------------- /testing-in-go-web-sockets/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/testing-in-go-web-sockets/main.go -------------------------------------------------------------------------------- /timeouts-deadlines/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/timeouts-deadlines/go.mod -------------------------------------------------------------------------------- /timeouts-deadlines/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/timeouts-deadlines/server.go -------------------------------------------------------------------------------- /timeouts-deadlines/slow_server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/timeouts-deadlines/slow_server.go -------------------------------------------------------------------------------- /timeouts-deadlines/timeout_server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/timeouts-deadlines/timeout_server.go -------------------------------------------------------------------------------- /weather-aqi/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/weather-aqi/README.md -------------------------------------------------------------------------------- /weather-aqi/aqi.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/weather-aqi/aqi.go -------------------------------------------------------------------------------- /weather-aqi/cities.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/weather-aqi/cities.csv -------------------------------------------------------------------------------- /weather-aqi/csv.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/weather-aqi/csv.go -------------------------------------------------------------------------------- /weather-aqi/darksky.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/weather-aqi/darksky.go -------------------------------------------------------------------------------- /weather-aqi/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/weather-aqi/main.go -------------------------------------------------------------------------------- /weather-aqi/workers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fteem/go-playground/HEAD/weather-aqi/workers.go --------------------------------------------------------------------------------