golang: go run is always running old code even after changes -


i have weird issue golang. run command (like everytime):

go run main.go 

then made change code , run again:

go run main.go 

but executed code old version of code. tried stuff:

  • reboot computer
  • delete temporary binaries temp folder
  • reinstall go
  • delete , put code
  • remove file

but still running old version of code. didn't find solution issue, , few post doesn't give solution (here , here).

about configuration following:

  • raspberry pi running raspbian (updated)
  • go version 1.8.1

i hope can me ! thank in advance!

best regards,

i think gopath pointing wrong folder. please, run go env make sure pointing right directory. if not set location go files are. please, take account go run not need file specification , if have list defacto files of app main.go depends upon.

have ``here


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -