Seek sets the offset for the next Read or Write on file to offset,
interpreted according to whence: 0 means relative to the origin of the file,
1 means relative to the current offset, and 2 means relative to the end. It
returns the new offset and an error, if any.
So, I think f.Seek(0, 1) should give you what you're looking for.
--
Scott Lawrence
go version weekly.2012-02-22 +a2275531cfe0
Linux jagadai 3.2.8-1-ARCH #1 SMP PREEMPT Mon Feb 27 21:51:46 CET 2012 x86_64 Intel(R) Core(TM)2 Duo CPU P8700 @ 2.53GHz GenuineIntel GNU/Linux
offset, err := file.Seek(os.SEEK_CUR, 0)