mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-06 00:25:55 +00:00
This commit adds id-to-key translation to make it easier for users to provide non-integer identifiers for rows & columns.
14 lines
246 B
Go
14 lines
246 B
Go
package mock
|
|
|
|
type ReadCloser struct {
|
|
ReadFunc func(p []byte) (int, error)
|
|
CloseFunc func() error
|
|
}
|
|
|
|
func (rc *ReadCloser) Read(p []byte) (int, error) {
|
|
return rc.ReadFunc(p)
|
|
}
|
|
|
|
func (rc *ReadCloser) Close() error {
|
|
return rc.CloseFunc()
|
|
}
|