summaryrefslogtreecommitdiff
path: root/set/set.go
blob: 29bfad73c3a2d12823080f1c784f2edfa344ccc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package set

import "fmt"

var (
	NotFound       = fmt.Errorf("could not find entry")
	NotImplemented = fmt.Errorf("method not implemented")
)

type Set interface {
	Empty() bool
	Set(key int, val int)
	Get(key int) (int, error)
	Del(key int) (int, error)
}