Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DisableCgocheck = func() error { for _, dv := range dbgVars { if dv.name == "cgocheck" { *dv.value = 0 return nil } } return errors.New("can't disable cgocheck. Set environment GODEBUG=cgocheck=0 or use -pin switch to generate call library") }
DisableCgocheck disables go runtime feature to check embedded pointers to go memory. This function links private variable from go runtime to change variable value and may break in any future versions for Go. Use new flag -pin to generate Pinned memory guards available in go1.21
Functions ¶
func GetProcAddress ¶
Retrieve address to exported function
Types ¶
type Handle ¶
type Handle uintptr
func LoadLibrary ¶
LoadLibrary load shared object file (.so) and gives a handle to it. If libraryPath name looks like Windows DLL name (is has .dll extension) it will be converted to Linux equivalent Like someapi.dll -> libsomeapi.so
Click to show internal directories.
Click to hide internal directories.