Help us shape the future of Go! Take the 2026 Go Developer Survey

dl

package
v0.6.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RTLD_LAZY performs relocations at an implementation-dependent time.
	RTLD_LAZY = 0x00001

	// RTLD_NOW resolves all symbols when loading the library (recommended).
	RTLD_NOW = 0x00002

	// RTLD_GLOBAL makes all symbols available for relocation processing of other modules.
	// NOTE: Different from macOS (0x8) - Linux uses 0x00100
	RTLD_GLOBAL = 0x00100

	// RTLD_LOCAL makes symbols not available for relocation processing by other modules.
	RTLD_LOCAL = 0x00000
)

RTLD constants from <dlfcn.h> for dynamic library loading on Linux.

View Source
const RTLD_DEFAULT = 0x00000

RTLD_DEFAULT is a pseudo-handle for dlsym to search for any loaded symbol. NOTE: Different from macOS (1<<64 - 2) - Linux uses 0

Variables

This section is empty.

Functions

func Dlclose

func Dlclose(handle uintptr) error

Dlclose unloads a dynamic library

func Dlopen

func Dlopen(path string, mode int) (uintptr, error)

Dlopen loads a shared library

func Dlsym

func Dlsym(handle uintptr, name string) (uintptr, error)

Dlsym returns the address of a symbol in a loaded library

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL