Tag

compiler-directive

0 views collected around this technical thread.

Go Programming World
Go Programming World
Mar 17, 2025 · Fundamentals

Exploring Go's //go:linkname Directive and Its Pull, Push, and Handshake Modes

This article explains the Go //go:linkname compiler directive, showing how it can link exported and unexported symbols across packages using Pull, Push, and Handshake modes, provides code examples, discusses safety considerations, and offers guidance for using the directive in Go 1.23 and later.

GoLinknameUnsafe
0 likes · 13 min read
Exploring Go's //go:linkname Directive and Its Pull, Push, and Handshake Modes