Go 1.21 release candidate is available.

It has some interesting changes in my opinion:

  • clear() for clearing maps
  • new slices package for common operations on slices
  • new maps package for cloning and comparing maps

And some somewhat interesting ones:

  • min/max function directly in the language without a package (could have easily been in math package, but then again, you can min/max strings with this?)
  • structured logging package

Some other optimizations and improvements.

What do you think?

You are viewing a single thread.
View all comments
1 point
*

Wow super excited about slices package! Very nice quality of life addition.

permalink
report
reply

Go programming language discussion

!golang@lemmy.ml

Create post

Community stats

  • 5

    Monthly active users

  • 91

    Posts

  • 48

    Comments