iterator interface chenged index and count members from int to tint 64

This commit is contained in:
2026-05-01 17:15:18 +02:00
parent 75ed88915d
commit dacbec677a
13 changed files with 65 additions and 44 deletions
+4 -4
View File
@@ -17,8 +17,8 @@ const fileReadTextIteratorType = "fileReadTextIterator"
type fileReadTextIterator struct {
osReader *osReader
index int
count int
index int64
count int64
line string
autoClose bool
}
@@ -38,7 +38,7 @@ func (it *fileReadTextIterator) String() string {
return fmt.Sprintf("$(%s@<nil>)", fileReadTextIteratorType)
}
func (it *fileReadTextIterator) Count() int {
func (it *fileReadTextIterator) Count() int64 {
return it.count
}
@@ -62,7 +62,7 @@ func (it *fileReadTextIterator) Current() (item any, err error) {
return
}
func (it *fileReadTextIterator) Index() int {
func (it *fileReadTextIterator) Index() int64 {
return it.index
}