Closed ab7z closed 1 year ago
Yes, indeed, this is planned.
Ideas and PRs will be appreciated
https://github.com/mmcgrana/gobyexample/commit/2166e61181f712d4a7c8a29b019fe7d122ffc8a3 and https://github.com/mmcgrana/gobyexample/commit/655a3b6a9e216972337ccab5c124142d2ad71a83 update the sorting samples to use new functionality from the slices
package
Here's a list of ideas of the updates needed, with marking of stuff done:
clear
for slicessort
to slices
slices
package utilsmaps
package utilsOther topics I'm much less sure about:
slog
: we don't even cover non-structured logging now. A potential example could be interesting but the devil is in the detailsclear
for map
is too specialized to mention here, IMHOmin
and max
? OTOH they're too trivial and there's no natural place to mention themslices
and maps
examples added in https://github.com/mmcgrana/gobyexample/commit/146bd9cce2d3d89fac28f4f6334d9b2acbed7dee
log/slog
(and log
itself) added in https://github.com/mmcgrana/gobyexample/commit/15d8fe75b82f488461a0bb219e555bfccb999b08
I wanted to bring to your attention the recent release of Go version 1.21 and the exciting new features it brings to the language. I believe it would greatly benefit the Go community if the website is updated to include explanations and examples of these new features.