Este contenido no está disponible en el idioma seleccionado.

Chapter 1. Go Toolset


1.1. About Go Toolset

Go Toolset is a Red Hat offering for developers on the Red Hat Enterprise Linux platform. It provides the Go programming language tools and libraries. Go is alternatively known as golang.

Go Toolset is distributed as a part of Red Hat Developer Tools for Red Hat Enterprise Linux 7 and is available as a module in Red Hat Enterprise Linux 8.

The following components are available as a part of Go Toolset:

Expand
Table 1.1. Go Toolset 1.11.5 Components
NameVersionDescription

golang

1.11.5

A Go compiler.

1.2. Compatibility

Go Toolset is available for Red Hat Enterprise Linux 7 and Red Hat Enterprise Linux 8 on the following architectures:

  • The 64-bit Intel and AMD architectures
  • The 64-bit ARM architecture
  • The IBM Power Systems architecture
  • The little-endian variant of IBM Power Systems architecture
  • The IBM Z Systems architecture

1.3. Getting Access to Go Toolset on Red Hat Enterprise Linux 7

Go Toolset is an offering that is distributed as a part of the Red Hat Developer Tools content set, which is available to customers with deployments of Red Hat Enterprise Linux 7. In order to install Go Toolset, enable the Red Hat Developer Tools and Red Hat Software Collections repositories by using the Red Hat Subscription Management and add the Red Hat Developer Tools GPG key to your system.

  1. Enable the rhel-7-variant-devtools-rpms repository:

    # subscription-manager repos --enable rhel-7-variant-devtools-rpms
    Copy to Clipboard Toggle word wrap

    Replace variant with the Red Hat Enterprise Linux system variant (server or workstation).

    Note

    We recommend developers to use Red Hat Enterprise Linux Server for access to the widest range of development tools.

  2. Enable the rhel-variant-rhscl-7-rpms repository:

    # subscription-manager repos --enable rhel-variant-rhscl-7-rpms
    Copy to Clipboard Toggle word wrap

    Replace variant with the Red Hat Enterprise Linux system variant (server or workstation).

  3. Add the Red Hat Developer Tools key to your system:

    # cd /etc/pki/rpm-gpg
    # wget -O RPM-GPG-KEY-redhat-devel https://www.redhat.com/security/data/a5787476.txt
    # rpm --import RPM-GPG-KEY-redhat-devel
    Copy to Clipboard Toggle word wrap

Once the subscription is attached to the system, and repositories enabled you can install Red Hat Go Toolset as described in Section 1.4, “Installing Go Toolset”.

Additional Resources

1.4. Installing Go Toolset

Go Toolset is distributed as a collection of RPM packages that can be installed, updated, uninstalled, and inspected by using the standard package management tools that are included in Red Hat Enterprise Linux. Note that a valid subscription that provides access to the Red Hat Developer Tools content set is required in order to install Go Toolset on a Red Hat Enterprise Linux 7 system. For detailed instructions on how to associate your Red Hat Enterprise Linux 7 system with an appropriate subscription and get access to Go Toolset, see Section 1.3, “Getting Access to Go Toolset on Red Hat Enterprise Linux 7”.

Important

Before installing Go Toolset, install all available Red Hat Enterprise Linux updates.

  1. Install all of the components included in Go Toolset for your operating system:

    • On Red Hat Enterprise Linux 7, install the go-toolset-1.11 package:

      # yum install go-toolset-1.11
      Copy to Clipboard Toggle word wrap
    • On Red Hat Enterprise Linux 8, install the go-toolset module:

      # yum module install go-toolset
      Copy to Clipboard Toggle word wrap

      This installs all development and debugging tools, and other dependent packages to the system.

  2. Create the Go language workspace directory and environment variable:

    $ mkdir -p workspace_dir
    $ echo 'export GOPATH=workspace_dir' >> $HOME/.bashrc
    $ source $HOME/.bashrc
    Copy to Clipboard Toggle word wrap

    Select an appropriate value for the workspace_dir directory. A common choice is $HOME/go.

    If the GOPATH variable is not set, the go compiler uses the ~/go directory.

Additional Resources

  • Workspaces — Description of the Go language workspace organization. Official documentation for the Go programming language.

1.5. Additional Resources

A detailed description of the Go Toolset and all its features is beyond the scope of this book. For more information, see the resources listed below.

Online Documentation

Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat