Critical: Single Go runtime restriction
mainWARNING
Use only one Go runtime per process.
Every native libXray artifact (whether produced via cgo or gomobile) embeds a Go runtime. Do not load libXray alongside any other independently built Go, cgo, or gomobile library in the same executable or process. Doing so will cause build, link, or load failures, or runtime crashes during initialization.
Correct Pattern:
If your process needs Go packages from multiple libraries, include them in a single Go build or gomobile bind invocation to produce one native artifact that shares a single runtime.