for compile this example, use https://github.com/z505/goDLL is easy create dll NOTE: when you are loading dll in your lenguaje add "cdecl" , in your interface if not add, not working the callback.