New Features in GoLand 2021.2

A selection of useful features from GoLand 2021.2

GoLand 2021.2 was released on July 29th, 2021! For more information about what's new in this release, check out our What's New Page or browse the tips below.

Check out DataGrip 2021.2 What's New and WebStorm 2021.2 What's New to read all about the new features related to database and modern web development included in GoLand.

Go 1.17: Convert slice to array pointer

With Go 1.17, it is possible to covert a slice to an array pointer

Tip Screenshot

Optimize your code by removing bounds checks when using slices and arrays.

Go 1.17 brings a new language change: Converting a slice to an array pointer yields a pointer to the underlying array of the slice. If the length of the slice is less than the length of the array, a run-time panic occurs.