feat: revise API, add README.md, LICENSE

This commit is contained in:
2025-08-31 13:31:00 +03:00
parent 82143dffc7
commit 6128f82149
12 changed files with 175 additions and 22 deletions

View File

@@ -1,7 +1,6 @@
package script
import (
"context"
"io"
)
@@ -16,7 +15,7 @@ func NewMemReader(records [][]string) *MemReader {
}
}
func (m *MemReader) Read(context.Context) ([]string, error) {
func (m *MemReader) Read() ([]string, error) {
if m.curr == len(m.rows) || len(m.rows) == 0 {
return nil, io.EOF
}