
Alex Edwards
@ajmedwards
Followers
7K
Following
248
Media
39
Statuses
551
Full-stack web developer · Author of Let's Go › https://t.co/iJ9IPNSqnt
Österreich
Joined June 2009
Way back in 2014 I wrote a blog post "Making and using HTTP Middleware in Go". I decided it was time to give it a bit of love. I've modernized the examples and restructured the post and explanations to (hopefully!) improve it further.
alexedwards.net
2
17
102
I've just finished writing a new blog post "How to manage configuration settings in Go web applications". I talks through patterns for using flags, env vars and config files, and how to pass settings to where they are needed in your application code.
alexedwards.net
1
10
58
New blog post now out: It talks about how to extend Go's http.ServeMux to support middleware 'groups' (like chi), and also a quick and simple alternative to alice for chaining middleware.
alexedwards.net
1
4
34
Panic! …or maybe not? 🤔 I've just published a new tutorial exploring and answering the question: When is it OK to panic in Go?. Give it a read at: I enjoyed writing this one, and it was good to fully clarify and codify how I've been using #golang panics
1
2
8
New tutorial now out about how to use the Go 1.24 features to better manage developer tooling in your #golang projects. Check it out at:
2
3
26
RT @bwplotka: Looks like @golang 1.24 is going to be pretty epic!. Weak pointers, properly working finalizers alone might change the game!….
antonz.org
Weak pointers, faster maps, directory-scoped access, and more.
0
43
0
New tutorial now out: Mindset tips and practical advice for structuring your #golang projects. 👉
4
5
43
It's that time of year again where I run a Black Friday sale on Let's Go and Let's Go Further🥳 Both books are 30% off between now and the 30th November! #golang
17
11
87
It's mid-year sale time again 🎉 My books Let's Go and Let's Go Further are both 30% off until the 15th August and fully updated for Go 1.22. If you've been wanting to read them, now's the time! #golang . .
19
20
151
I've just published a new quick-tip blog post sharing the code that I use for creating generic in-memory caches in #golang projects. Check it out at:
5
9
103
Black Friday sale 🎉 My books Let's Go and Let's Go Further are both 30% off until the 30th November! It's a great time to grab a copy for some holiday reading #golang . .
9
11
87
1. Copy the code from 2. Save it in a `go-update` file somewhere on your system path. 2. Make it executable `$ chmod +x go-update`.3. Run it like `$ go-update 1.21.4`.
gist.github.com
Bash script for updating Go. GitHub Gist: instantly share code, notes, and snippets.
1
0
6
Now that using govulncheck is part of my standard workflow, I find that I'm upgrading my local #golang version a lot more often than I used to. So I asked ChatGPT to write a bash script to automate the upgrade process, and a few iterations later it works pretty nicely.
6
2
32
My new blog post "Demystifying function parameters in Go" is ready to read:. It ends with some rules-of-thumb that you can keep in mind for your day-to-day work, and aims to clear up some common sources of confusion, like:. - Why do functions generally.
alexedwards.net
0
2
26