Go Programming in Practice: Concurrency, Error Handling, Testing, Modules and Building Fast Services and Command-Line Tools

· neobooks
Ebook
59
Pages
Eligible

About this ebook

You can learn Go's syntax in a weekend, but services that stay up and tools that behave in pipelines take habits the tutorials skip. This book shows you those habits through one running example: a small shop's stock service and its command-line client. You will set up modules with reproducible builds, design errors that carry context and are handled once, and run goroutines that are bounded, cancellable and race-free. You will build an HTTP server with sensible timeouts and graceful shutdown, test it with tables, fakes and httptest, measure with benchmarks and profiles, and ship small static binaries for other platforms. Every chapter ends with actions, and a Quick Reference gives checklists, a command cheat sheet and a troubleshooting table.
You can learn Go's syntax in a weekend, but services that stay up and tools that behave in pipelines take habits the tutorials skip. This book shows you those habits through one running example: a small shop's stock service and its command-line client. You will set up modules with reproducible bu...

Discover more

About the author

Imad Muratspahic is an independent author of practical how-to guides, technical handbooks, history and fiction. The books aim to be clear, honest and useful from the first page.
Imad Muratspahic is an independent author of practical how-to guides, technical handbooks, history and fiction. The books aim to be clear, honest and useful from the first page.

Rate this ebook

Tell us what you think.

Reading information

Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.