ajmedwards Profile Banner
Alex Edwards Profile
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
Don't wanna be here? Send us removal request.
@ajmedwards
Alex Edwards
1 month
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
@ajmedwards
Alex Edwards
2 months
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
@grok
Grok
4 days
Generate videos in just a few seconds. Try Grok Imagine, free for a limited time.
318
601
2K
@ajmedwards
Alex Edwards
3 months
It's a bit overdue, but I finally updated my "Which Go router should I use?" blog post to reflect the `http.ServeMux` changes in Go 1.22.
Tweet media one
3
15
100
@ajmedwards
Alex Edwards
4 months
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
@ajmedwards
Alex Edwards
5 months
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
Tweet media one
1
2
8
@ajmedwards
Alex Edwards
6 months
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:
Tweet media one
2
3
26
@ajmedwards
Alex Edwards
7 months
RT @bwplotka: Looks like @golang 1.24 is going to be pretty epic!. Weak pointers, properly working finalizers alone might change the game!….
Tweet card summary image
antonz.org
Weak pointers, faster maps, directory-scoped access, and more.
0
43
0
@ajmedwards
Alex Edwards
7 months
New tutorial now out: Mindset tips and practical advice for structuring your #golang projects. 👉
Tweet media one
4
5
43
@ajmedwards
Alex Edwards
9 months
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
Tweet media one
17
11
87
@ajmedwards
Alex Edwards
1 year
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 . .
Tweet media one
19
20
151
@ajmedwards
Alex Edwards
1 year
Both my Let's Go and Let's Go Further books have now been updated for Go 1.22, and updates for existing readers should be on their way to your inbox this evening (or with you already!). Let's Go now uses the new http.ServeMux features for routing, Let's Go Further continues to.
12
9
130
@ajmedwards
Alex Edwards
2 years
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:
Tweet media one
5
9
103
@ajmedwards
Alex Edwards
2 years
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 . .
Tweet media one
9
11
87
@ajmedwards
Alex Edwards
2 years
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`.
Tweet card summary image
gist.github.com
Bash script for updating Go. GitHub Gist: instantly share code, notes, and snippets.
1
0
6
@ajmedwards
Alex Edwards
2 years
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.
Tweet media one
6
2
32
@ajmedwards
Alex Edwards
2 years
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