seek(offset,whence),设置指针光标的位置,随机读写文件:

第一个参数:偏移量
第二个参数:如何设置            

            0:seekStart表示相对于文件开始,
            1:seekCurrent表示相对于当前偏移量,
            2:seek end表示相对于结束。

const (
    SeekStart   = 0 // seek relative to the origin of the file
    SeekCurrent = 1 // seek relative to the current offset
    SeekEnd     = 2 // seek relative to the end
)