Documentation for a newer release is available. View Latest

Go

Golang 1.13

Fedora 31 proporciona la versión Golang 1.13, desde la versión 1.12 en Fedora 30.

Al establecer las variables de entorno GOSUMDB=off y GOPROXY=direct, Fedora se desvió ligeramente de la configuración predeterminada de Golang. Este cambio permite a los usuarios personalizar las variables de entorno y evita filtraciones involuntarias de información personal. No afecta a los usuarios del compilador.

Los cambios notables incluyen:

Nuevas características

  • Versión 1.13 admite conjunto más uniforme y modelizado de números literal prefijo.

  • The new GOSUMDB environment variable has been added. It identifies the name, and optionally the public key and server URL of the checksum database. This is done in order to consult the checksums of modules which are not yet listed in the go.sum file of the main module.

  • The go command verifies the mapping between pseudo-versions and version-control metadata.

  • The go env command accepts a -w flag to set the per-user default value. A -u flag unsets the previously-set default. The defaults set through go env -w command are stored in the go/env file within the os.UserConfigDir() function.

  • The assembler supports many of the atomic instructions introduced in ARM v8.1.

  • The Transport Layer Security (TLS) 1.3 protocol is supported in the crypto/tls package by default.

  • Version 1.13 supports error wrapping.

Declaraciones

  • Versión 1.13 es la última que ejecuta en la tecnología aislada del Cliente Nativo (NaCl).

  • La sub-instrucción go-get no admitida más en el indicador -m.

  • As of version 1.13, the godoc webserver is not included in the main binary distribution.

For full information about this release, see the upstream release notes.

Directrices de empaquetado Golang

Fedora has adopted a new set of packaging guidelines for Golang. If you maintain any Go packages, you can view them in the Packaging Guidelines document.