Go · Installation

Installation

import "github.com/unum-cloud/ucall" 1.0.0-rc.1 · b7577426

Ask your coding agent about this page, or add the docs server to it

curl -s 'https://www.unum.cloud/docs/ucall/go/installation.md' | claude -p "How would this fit my code?"

Fetch the module, which serves and calls HTTP, in plaintext or over Noise, from Go:

go get github.com/unum-cloud/ucall/golang@main

The package binds the C interface in c/ucall/ through cgo and links the ucall_static archive, so building needs Go 1.24 or newer with cgo enabled and a C toolchain. Building the archive takes CMake 4.3 and a C++23 compiler: GCC 15, Clang 22 with libstdc++ 15 or libc++ 22, Xcode 26 or VS 2026. Build it from a checkout and point cgo at it for the current shell, or install it where the linker looks:

cmake -B build_release -D CMAKE_BUILD_TYPE=Release
cmake --build build_release --target ucall_static
export CGO_LDFLAGS="-L$PWD/build_release"

On Linux the archive’s io_uring backends also link the liburing archive the same build leaves beside it. Pin a branch or a commit, as in @main or @<commit>, which go.sum records as a pseudo-version. The library picks its I/O backend and CPU kernels when a server or client starts, so one build adapts to the kernel and CPU it runs on.

API

Functions

VersionVersion reports the version of the linked library, a release-candidate suffix included.
ucall.go:379 ↗
func Version() string