Articles › golang

 

    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. Implementing an in-memory cache in Go  
  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. Flow: A tiny but powerful HTTP router for Go  
  18. Using go run to manage tool dependencies  
  19. Easy test assertions with Go generics  
  20. 2021

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

  28. Surprises and gotchas when working with JSON  
  29. How to manage database timeouts and cancellations in Go
  30. 2019

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

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

  43. How to rate limit HTTP requests in Go  
  44. Validation snippets for Go  
  45. 2016

  46. SCS: A session manager for Go web applications  
  47. Working with Redis in Go  
  48. 2015

  49. Organising database access in Go
  50. An introduction to using SQL databases in Go
  51. 2014

  52. Context-aware Handler chains  
  53. Making and using HTTP Middleware in Go
  54. 2013

  55. Automatic code reloading in Go  
  56. Simple 'flash' messages in Go  
  57. Form validation and processing in Go  
  58. HTTP responses in Go: JSON, XML and more  
  59. Understanding Mutexes
  60. An introduction to Handlers and Servemuxes in Go
  61. Serving static sites with Go