dl #

Constants #

const (
	version = 1
	dl_ext  = get_shared_library_extension()
)
const (
	rtld_now  = C.RTLD_NOW
	rtld_lazy = C.RTLD_LAZY
)

fn close #

fn close(handle voidptr) bool

close frees a given shared object.

fn get_shared_library_extension #

fn get_shared_library_extension() string

get_shared_library_extension returns the platform dependent shared library extension i.e. .dll on windows, .so on most unixes, .dylib on macos.

fn open #

fn open(filename string, flags int) voidptr

fn sym #

fn sym(handle voidptr, symbol string) voidptr

sym returns an address of a symbol in a given shared object.