1 2 3 4 5 6 7 8 9 10 11 12 13 14
package gpgme // #include <stdlib.h> import "C" import ( "unsafe" ) // unsetenv is not available in mingw func unsetenvGPGAgentInfo() { v := C.CString("GPG_AGENT_INFO=") defer C.free(unsafe.Pointer(v)) C.putenv(v) }