30 lines
482 B
Go
30 lines
482 B
Go
|
package xfile
|
||
|
|
||
|
import (
|
||
|
"esgo2dump/internal/interfaces"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
type client struct {
|
||
|
f *os.File
|
||
|
}
|
||
|
|
||
|
func (c client) Write(docs []map[string]any) (int, error) {
|
||
|
//TODO implement me
|
||
|
panic("implement me")
|
||
|
}
|
||
|
|
||
|
func (c client) Read(i int) ([]map[string]any, error) {
|
||
|
//TODO implement me
|
||
|
panic("implement me")
|
||
|
}
|
||
|
|
||
|
func (c client) Close() error {
|
||
|
//TODO implement me
|
||
|
panic("implement me")
|
||
|
}
|
||
|
|
||
|
func NewClient(file *os.File) (interfaces.DumpIO, error) {
|
||
|
return &client{f: file}, nil
|
||
|
}
|