Articles › tutorial

 

    Articles marked with ★ are favorites of mine

    2025

  1. A modern approach to preventing CSRF in Go  
  2. The 9 Go test assertions I use (and why)  
  3. How to manage configuration settings in Go web applications  
  4. Organize your Go middleware without dependencies  
  5. When is it OK to panic in Go?
  6. How to manage tool dependencies in Go 1.24+  
  7. Eleven tips for structuring your Go projects
  8. 2023

  9. Demystifying function parameters in Go  
  10. A gentle introduction to Pointers  
  11. A time-saving Makefile for your Go projects
  12. How to use the http.ResponseController type  
  13. An introduction to Packages, Imports and Modules in Go
  14. 2022

  15. A complete guide to working with Cookies in Go  
  16. The 'fat service' pattern for Go web applications  
  17. Using go run to manage tool dependencies  
  18. 2021

  19. Continuous integration with Go and GitHub Actions  
  20. Which Go router should I use?
  21. I18n in Go: Managing translations  
  22. How to correctly use Basic Authentication in Go  
  23. Custom command-line flags with flag.Func  
  24. 2020

  25. Surprises and gotchas when working with JSON  
  26. How to manage database timeouts and cancellations in Go
  27. 2019

  28. How to parse a JSON request body in Go  
  29. Golang Interfaces explained
  30. Using PostgreSQL JSONB with Go  
  31. An overview of Go's tooling  
  32. 2018

  33. How to hash and verify passwords with Argon2 in Go  
  34. Streamline your Sublime Text + Go workflow  
  35. HTTP Method spoofing in Go  
  36. How to build a Serverless API with Go and AWS Lambda  
  37. How to disable http.FileServer directory listings  
  38. Configuring sql.DB for better performance  
  39. 2017

  40. How to rate limit HTTP requests in Go  
  41. Validation snippets for Go  
  42. 2016

  43. Working with Redis in Go  
  44. 2015

  45. Organising database access in Go
  46. An introduction to using SQL databases in Go
  47. 2014

  48. Context-aware Handler chains  
  49. Making and using HTTP Middleware in Go
  50. 2013

  51. Simple 'flash' messages in Go  
  52. Form validation and processing in Go  
  53. HTTP responses in Go: JSON, XML and more  
  54. Understanding Mutexes
  55. An introduction to Handlers and Servemuxes in Go
  56. Serving static sites with Go