Make the API consistent across platforms, so that consumers can use purego wihtout having to bother with Windows-specific shenanigans. Simply wrap windows.LoadLibrary, windows.GetProcAddress and windows.FreeLibrary and cast the returned values to purego Api types.
This makes it tremendously easier ot consume purego in apps that target both Windows and *NIXes.
Make the API consistent across platforms, so that consumers can use purego wihtout having to bother with Windows-specific shenanigans. Simply wrap
windows.LoadLibrary
,windows.GetProcAddress
andwindows.FreeLibrary
and cast the returned values topurego
Api types.This makes it tremendously easier ot consume
purego
in apps that target both Windows and *NIXes.