
Let’s Go Further! Advanced patterns for building APIs and web applications in Go
- Publisher finelybook 出版社: Alex Edwards
Enjoy the rest of your Tuesday! - Written for Go 1.25
- Last updated August 17th, 2025
- Formats HTML, PDF and ePUB
- Language 语言: English
- Print length 页数: 575 pages (in PDF format)
- Version 1.25.1
Book Description
What You’ll Learn…
-
1Structure and organization — How to implement an idiomatic and flexible code structure for your RESTful API projects.
-
2JSON responses — How to send JSON responses from your API, how to format and customize them, and what common gotchas you need to be aware of.
-
3JSON requests — How to parse incoming JSON requests, manage bad requests, and restrict and validate their content.
-
4SQL migrations — How to use SQL migrations to manage changes to your database schema.
-
5Database operations — How to set timeouts on your database queries and optimize the behavior of Go’s
sql.DBconnection pool. -
6Beyond CRUD — How to perform advanced actions on your API resources, including fetching related data and partial updates (with optimistic concurrency control).
-
7Filtering, sorting and pagination — How to support filtering, sorting and pagination of data in your API endpoints.
-
8Full-text search — How to use PostgreSQL’s full-text search functionality to perform natural-language searches of your data.
-
9Rate-limiting — How to limit requests to your API on a per-client basis.
-
10Managing background tasks — How to safely execute tasks in background goroutines.
-
11Graceful shutdown — How to set up your API to support graceful shutdowns, including waiting for background tasks to complete.
-
12Sending emails — How to send emails from your API and manage email content using Go’s new embedded files functionality.
-
13User activation and password resets — How to build secure workflows for registering users, verifying their email address, and managing password resets.
-
14Authentication — How to authenticate users with both stateful bearers tokens and stateless JWTs (JSON web tokens).
-
15Permission-based authorization — How to implement granular permission-based authorization checks on your API endpoints.
-
16Managing CORS requests — How to control cross-origin requests to your API from front-end JavaScript applications.
-
17Metrics — How to expose application metrics, including memory use,
sql.DBconnection pool statistics, response status counts and more. -
18Building and auditing — How to combine Go’s tooling and Makefiles to easily audit your code, build binaries and vendor dependencies.
-
19Versioning — How to leverage Git to apply automatic application versioning when building binaries.
-
20Deployment — How to set up a Linux server on Digital Ocean, automate deployments, and run your API as a background service in production using systemd.
About the Author
Hey, I’m Alex Edwards, a full-stack web developer and author of Let’s Go and Let’s Go Further. I live near Innsbruck, Austria.
I’ve been working with Go for over 10 years, building production applications for commercial clients and myself (including the website that you’re reading now!) and helping people all around the world improve their Go skills.
You can see more of my writing on my blog (where I publish detailed tutorials), some of my open-source work on GitHub, and you can also follow me on Instagram and Twitter.
finelybook
