[go] Question about os.Open(),compiled program don't work


(ext) #1

Guys, I use this function os.Open() and everything is OK in the console (IDE), but when I compile the project and run it (Mac os) then errors go…Error (0x111a960,0xc00008a000)…and etc., in other situations, for example, output i values to the fmt.Println ()- the compiled program works fine, why does this happen?


(ext) #2

I try run it on console mode ./app and all works fine


(Kristoffer Berdal) #3

You have to show us the actual error you are getting for us to be able to help you. Give us a full stack trace :slight_smile:


(ext) #4

thanks for answer but I delete project, exec file, that I get after compile don’t run, but in console mode file run and worked