You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Go\src\fmt\print.go:10:2: read C:\Go\src\os\exec.go: unexpected NUL in input
Note that the code in the OP has only 7 lines but the error is reported for line 10. Perhaps there's something more to the source. Can you please paste the output of hexdump -C your-file.go or from any other equivalent program?
Activity
[-]unexpected NUL in input[/-][+]cmd/compile: unexpected NUL in input[/+]mikioh commentedon Aug 9, 2018
Just tried the snippet on play.golang.org and got the following:
Is this what you want instead of "unexpected NUL in input"?
cznic commentedon Aug 9, 2018
Note that the code in the OP has only 7 lines but the error is reported for line 10. Perhaps there's something more to the source. Can you please paste the output of
hexdump -C your-file.goor from any other equivalent program?agnivade commentedon Aug 9, 2018
The error is reported from line 10 of
fmt/print.goI believe. In any case, this does sound like the source file is messed up somehow.mvdan commentedon Aug 9, 2018
@sjuliper7 are you positive that your Go installation isn't broken? It seems like the standard library source files cannot be read for some reason.
cznic commentedon Aug 9, 2018
@agnivade You're right, and I'm sorry.
gopherbot commentedon Sep 9, 2018
Timed out in state WaitingForInfo. Closing.
(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)