diff options
| author | Paul Buetow <paul@buetow.org> | 2020-10-17 10:59:41 +0100 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2020-10-17 10:59:41 +0100 |
| commit | 04d479156672bde8208c6e9ba266cca5659c5e1b (patch) | |
| tree | 510449cdc38b7e7084eba716e822afd09739770f /set/set.go | |
| parent | f0828a8336a4404b8a9807c4aaf6313f4ff8c5e8 (diff) | |
more on bst
Diffstat (limited to 'set/set.go')
| -rw-r--r-- | set/set.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/set/set.go b/set/set.go new file mode 100644 index 0000000..32174bc --- /dev/null +++ b/set/set.go @@ -0,0 +1,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) +} |
