Articles › tutorial

 

    Articles marked with ★ are favorites of mine

    2025

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

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

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

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

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

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

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

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

  42. Working with Redis in Go  
  43. 2015

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

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

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