Home  >  Article  >  Backend Development  >  latest news! Go 1.17 is officially released!

latest news! Go 1.17 is officially released!

藏色散人
藏色散人forward
2021-08-19 14:36:033783browse

The following is the go language tutorial column to introduce to you the news about the official release of Go 1.17. I hope it will be helpful to friends in need!

Go 1.17 has been officially released.

latest news! Go 1.17 is officially released!

#This version improves the compiler, specifically a new way of passing function parameters and results. Officials say this change will improve the performance of Go programs by about 5% and reduce the binary package size of the amd64 platform by about 2%. It plans to support more platforms in the future.

Go 1.17 also adds support for the 64-bit ARM architecture on Windows, allowing Go developers to run Go natively on more devices.

The new version also adds the pruned module graphs function. The official description of this feature is that when Modules specifies go 1.17 or higher in its go.mod file, its module graph only includes the direct dependencies of other Go 1.17 modules, not all of its lateral dependencies. This will help avoid go.mod downloading or reading files for other unrelated dependencies, thus saving time in daily development.

In terms of language, Go 1.17 includes three improvements to language features:

  • Supports conversion from slice to array pointer

  • unsafe.Add: unsafe.Add(ptr, len) adds len to ptr and returns the updated pointer unsafe.Pointer(uintptr(ptr) uintptr(len))

  • unsafe.Slice: For a ptr expression of type *T, unsafe.Slice(ptr, len) returns a slice of type []T, whose underlying array starts from ptr and whose length and capacity are len

Other updates include feature improvements and bug fixes, such as validation improvements for crypto/x509 and changes to URL query parsing.

For details, view the full release note: https://golang.org/doc/go1.17

Download address: https://golang.org/dl/

For more golang related knowledge, please visit golangtutorial column!

The above is the detailed content of latest news! Go 1.17 is officially released!. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:OSC开源社区. If there is any infringement, please contact admin@php.cn delete