You're at the End of the Sample
You've reached the end of the sample, but in the full version of this book there's a huge amount of more information how to build a secure, fast and maintainable web application. Including:
How to manage configuration settings for your application at runtime.
How to make dependencies available to your handlers in an extensible and type-safe way.
How to run SQL database queries from your application and avoid common errors that can lead to your server running out of resources.
How to use Go's templating actions and functions to display dynamic data in your HTML templates.
How to create and use your own custom templating functions.
How to gracefully handle template rendering errors at runtime.
How to use RESTful routing and semantic URLs to create a clear routing structure that follows HTTP best practices.
A user-friendly pattern for processing forms, validating data, and showing validation errors.
The correct steps to prevent common attacks including SQL injection, CSRF, XSS and Clickjacking.
How to securely use sessions to persist data between requests.
How to create and use middleware to perform common actions before or after your handlers.
How to log all the requests that your application receives.
How to set timeouts on your server to stop slow-client attacks in their tracks.
How to use HTTPS so that data is protected from eavesdropping while in transit, and configure the HTTPS settings to improve performance and security.
How to encrypt and store user passwords securely and safely in your database.
How to correctly implement user signup, login and logout functionality.
How to restrict access to logged in users for certain parts of your application.
How to pass information between your middleware and handlers using request context.
Idiomatic patterns for testing your web application using unit tests, integration tests and end-to-end tests and how to measure test coverage.
And most importantly... How to put it all together in a clean, scalable and easy-to-maintain way.
Sound good to you? Get the full version of the book now!