Название: Everyday Go / Everyday Golang - The Fast Track Автор: Alex Ellis Издательство: OpenFaaS Ltd Год: 2021 Страниц: 118 Язык: английский Формат: pdf (true), epub + Code Размер: 10.19 MB
"Everyday Go" is the fast way to learn tools, techniques and patterns from real tools used in production.
This book is a compilation of practical examples, lessons and techniques for Go developers. The topics cover the software lifecycle from learning the fundamentals, to software testing, to distribution and monitoring.
If you feel like you may have seen some of these techniques before, you would be right. I've been writing about Go since 2015 and wanted to take everything that I've needed on a regular basis, and to lay it out for you to benefit from.
Benefits to professional developers and businesses: Craft internal tools that you'll enjoy building and maintaining Deliver higher quality product through unit testing Increase reliability and uptime through monitoring and metrics Learn how to integrate quickly with brownfield APIs and products Cover your training objectives for this year
Who is this book for? Whether you're starting out with Go, or are at an intermediate level, then you will probably get a lot out of this book. You may get this book to expand your knowledge, or to go deeper in a certain area like Cross-compilation, Unit Testing, GitHub Actions or Goroutines.
It's also useful as reference material for experienced Go developers, for instance - the author uses the GitHub Actions and Prometheus chapters as a refresher when creating new services.
What do we cover?
How to use the book Why Go? Getting started with Go Managing packages and paths Understand Go modules and vendoring Creating your first program in Go Manage libraries and packages Adding external dependencies to your program Cross-compile your code for different Operating Systems Inject version information into your binaries Merge Go objects together into one Deal with HTTP and JSON parsing Learn how to use concurrency with Goroutines, channels, Mutexes, error groups and WaitGroups Write unit tests and understand everything that's available to you Learn party tricks of the testing in Go Isolate dependencies and unit test a HTTP server Embed data and files into your application Create dynamic content with templates Build a CLI that you'll enjoy using Load and write to config files in YAML Write your own HTTP microservices Integrate with Prometheus for metrics Learn to build and release Go binaries Build Docker container images Release your code on GitHub Get set for your onward journey