blob: 17024ea0e99d25adfb0cf97b30401367a6fb5e95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package search
import "fmt"
var (
NotFound = fmt.Errorf("could not find entry")
NotImplemented = fmt.Errorf("method not implemented")
)
type Put interface {
Empty() bool
Put(key int, val int)
Get(key int) (int, error)
Del(key int) (int, error)
}
|