EOF in go1 programming language

You may get errors like the following when compiling older Go programs with go1:

  undefined: os.EOF

In go1, os.EOF has moved to io.EOF. When you replace them you should stop getting this error.

Generally, to fix code using old Go APIs, you can run go fix . in the directory containing your files:

Fix finds Go programs that use old APIs and rewrites them to use newer ones. After you update to a new Go release, fix helps make the necessary changes to your programs.