1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-16 18:52:27 +08:00

fix: rename Seek to SeekOffset fix go vet check issue

This commit is contained in:
dudaodong
2024-02-20 11:39:41 +08:00
parent da24bae6b4
commit 27d19d1717
3 changed files with 4 additions and 6 deletions

View File

@@ -65,8 +65,8 @@ func (f *FileReader) Offset() int64 {
return f.offset
}
// Seek sets the current offset of the reading
func (f *FileReader) Seek(offset int64) error {
// SeekOffset sets the current offset of the reading
func (f *FileReader) SeekOffset(offset int64) error {
_, err := f.file.Seek(offset, 0)
if err != nil {
return err