Articles › golang

 

    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. Implementing an in-memory cache in Go  
  10. Demystifying function parameters in Go  
  11. A gentle introduction to Pointers  
  12. A time-saving Makefile for your Go projects
  13. How to use the http.ResponseController type  
  14. An introduction to Packages, Imports and Modules in Go
  15. 2022

  16. A complete guide to working with Cookies in Go  
  17. The 'fat service' pattern for Go web applications  
  18. Flow: A tiny but powerful HTTP router for Go  
  19. Using go run to manage tool dependencies  
  20. Easy test assertions with Go generics  
  21. 2021

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

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

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

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

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

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

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

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

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