iterator interface chenged index and count members from int to tint 64
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user