You can't. It's not a limitation of go - it's a limitation of files. You would
have to re-write the entire file, by reading it in, then truncating, then
writing what you wish to prepend, then writing the buffer you read in.
>
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
golang-nuts...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
>
--
Scott Lawrence
go version go1.0.3
Linux baidar 3.8.3-2-ARCH #1 SMP PREEMPT Sun Mar 17 13:04:22 CET 2013 x86_64 GNU/Linux