Supported Environments

The PubSub+ Messaging API for Go is compatible and supported with any version of Go that is in active support and also has security update support. For information about supported versions of Go, see https://go.dev/doc/devel/release. For newer Go releases, additional time is required to update the PubSub+ Messaging API for Go. The PubSub+ Go API is compatible with the following platforms:

  • Linux (x86/x86_64) variants that are in active in support and also have security update support
    • compatible with glibc (desktop/server) and musl-c (Alpine Linux)
  • Linux (ARM) variants (linux-arm64)
    • compatible with glibc (desktop/server) only
  • Windows WSL 2.0
  • macOS 10.15 and later [x86_64 and ARM (M-Series processors)] 
    • If you use a non-standard OpenSSL installation, you may get an error message that contains ld: library not found for -lssl. This error means the linker cannot locate the OpenSSL library. To correct this, specify a path for OpenSSL with the following command: export CGO_LDFLAGS="-L/path/to/your/openssl@1.1/lib". This command exports the CGO_LDFLAGS variable to a specific OpenSSL distribution to support non-standard OpenSSL installations.

The Go API is not supported on Windows except when using Windows Subsystem for Linux 2.0 (WSL)

To retrieve the Solace PubSub+ Messaging API for go visit: https://pkg.go.dev/solace.dev/go/messaging. Alternatively, you can use the following command in your project directory:

go get solace.dev/go/messaging

This retrieves and installs the latest version of the PubSub+ Messaging API for Go.

The PubSub+ Go API requires openSSL for encrypted connections to the event broker (TLS). If OpenSSL is not already installed on your system you must do one of the following:

  • use your preferred package manger to install OpenSSL.

  • download/build/install OpenSSL from www.openssl.org.