wip: basic feat

This commit is contained in:
loveuer
2024-03-22 18:05:47 +08:00
commit 983533237f
13 changed files with 327 additions and 0 deletions

29
internal/xfile/xfile.go Normal file
View File

@ -0,0 +1,29 @@
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
}