Книги и журналы » Компьютерная литература » Программирование (книги)
Everyday Go / Повседневный GoГод издания: 2021
Автор: Alex Ellis
Издательство: Самиздат
Язык: Английский
Формат: PDF
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 118
Описание: “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. They are the kind of things that you may need to learn and apply in your everyday journey. The topics cover the software lifecycle from learning the fundamentals, to software testing, to distribution and monitoring.
[hr]
Эта книга - быстрый способ изучить инструменты, приемы и шаблоны на реальных инструментах, используемых в производстве.
Эта книга представляет собой сборник практических примеров, уроков и техник для разработчиков Go. Это те вещи, которые вам, возможно, придется изучить и применять в повседневном путешествии. Темы охватывают жизненный цикл программного обеспечения от изучения основ до тестирования программного обеспечения, распространения и мониторинга.
[spoiler="Примеры страниц"]

[/spoiler]
[spoiler="Оглавление"]
1 Introduction How to use the book Why Go? Getting started with Go 2 Create your first Go program Add an external dependency Make use of flags Define a separate package or library 3 Cross-compile for different operating systems Go build arguments CGO and portability 4 Fetch JSON from a HTTP endpoint Get started Learn to parse JSON Retrieve the JSON via HTTP Extracting additional data from the JSON 5 Five ways to write an awesome CLI Pick Go Parse flags & arguments Automate everything Integrate with package managers Accept contributions and gather feedback Now, Go and write your CLI 6 Writing unit-tests in Golang Testing opinions Testing the Sum method Adding a test table Party tricks for “go test” Isolating dependencies Unit-testing a HTTP server 7 Work concurrently work with Goroutines A simple example with Goroutines Avoid a common mistake with Goroutines Error groups Sharing data between Goroutines Using channels for synchronisation Using a context to handle timeouts Limiting concurrent work 8 Store data with a database
9 Write your own config files in YAML A practical example of YAML in action Read and write your own YAML schema Merging objects 10 Inject version information into your binaries Capture useful variable(s) Prepare your code Do it with Docker Examples in production 11 Embed data in your application
12 Create dynamic content with templates Advanced templates: ranges and custom functions Real-world templates - arkade 13 Write a HTTP server Reading the request Advanced route handling Writing HTTP middleware 14 Add Prometheus metrics to your microservices Tracking HTTP metrics for our microservice Adding custom metrics to your Prometheus data 15 Building and releasing Go binaries The release-it example Releasing your binaries with a GitHub Action 16 Releasing a Docker container image Going multi-arch Shipping a Docker container from GitHub Actions 17 Your onward journey Giving feedback Contributing to Open Source My other content
[/spoiler]