There are primarily three ways of sorting slices in Go. Early on, we had the verbose but
flexible method of implementing sort.Interface to sort the elements in a slice. Later, Go
1.8 introduced sort.Slice to reduce boilerplate with inline comparison functions. Most
recently, Go 1...
Compare three Go slice sorting methods: sort.Interface, sort.Slice with closures, and modern generic slices.Sort with type safety.
Quick takeaways
Frameworks promise productivity but often lead to issues as projects get larger and more complex.
The Go community prefers small, focused libraries over frameworks due to Go’s design philosophy influenced by Unix principles.
Watch out for risks using framew...
#546 — March 19, 2025
Unsub | Web Version
Go Weekly
Traversal-Resistant File APIs — Among the lesser known new features in recent versions of Go are some ways to improve file system security when end user input might have an i...
string and []string can be the same thing…
Meditation is easy when you know what to do: absolutely nothing! It's hard
at first, like trying to look at the back of your own head, but there's a
knack to it.
Happy March!
Another release is here with several improvements across the board.