Category : go

I just installed golang v1.17.2 on Windows 10, but every time I try to run a program via go run [package].go I am getting this error: open C:Users[user]AppDataLocalTempgo-build2263332531b001exe[package].exe: Access is denied. Soon after, I get a notification from bitdefender that it stopped a trojan that matches my golang program build location: Does anyone know how ..

Read more

I am running into the following issue when attempting to use the MatchTemplate function in the GoCV library. Exception 0x20474343 0x17dfa24eb60 0x7ffca1fd59c6 0x7ffca6fd4f99 PC=0x7ffca6fd4f99 runtime: unknown pc 0x7ffca6fd4f99 stack: frame={sp:0x194f1ff0b0, fp:0x0} stack=[0x0,0x194f1ff9e0) … … … goroutine 1 [syscall]: runtime.cgocall(0xcdf650, 0xc000123dc8) C:/Program Files/Go/src/runtime/cgocall.go:156 +0x4a fp=0xc000123da0 sp=0xc000123d68 pc=0xb640aa gocv.io/x/gocv._Cfunc_MatchTemplate(0x17dfa218a30, 0x17dfa24e9b0, 0x17dfa24ea20, 0x5, 0x17dfa24ea90) _cgo_gotypes.go:5195 +0x52 fp=0xc000123dc8 sp=0xc000123da0 ..

Read more

I have a routine that tries to detect if a websocket error while reading is an UnexpectedCloseError. This is the code… having a variable: myWebsocket *websocket.Conn my method is: messageType, data, err := myWebsocket.ReadMessage() if err != nil { if websocket.IsUnexpectedCloseError(err) { log.Debugf("WebsocketReadDataMessage: unexpected close error: %v", err) } else { log.Warnf("EXTRANGE!!!!: WebsocketReadDataMessage: error: %v", ..

Read more

I have been having several issues trying to set an active window (Ex: Calculator.exe) and minimizing and maximizing it. I have found several resources on here and none of them seem to be actually minimizing the window or restoring it. Here is what I have done so far: func main() { fpid, err := robotgo.FindIds("Calculator") ..

Read more