diff options
| author | Ewy~ <ewy0@protonmail.com> | 2026-03-31 17:18:35 +0200 |
|---|---|---|
| committer | Ewy~ <ewy0@protonmail.com> | 2026-03-31 17:18:35 +0200 |
| commit | cf085e93b7abc53b8ecc78c07210384e0ff8d516 (patch) | |
| tree | 270bc83c7e4d1c468bd7fcc61d2d65d6f447eda6 /storage/saveable.go | |
initial commit
Diffstat (limited to 'storage/saveable.go')
| -rw-r--r-- | storage/saveable.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/storage/saveable.go b/storage/saveable.go new file mode 100644 index 0000000..46a53f2 --- /dev/null +++ b/storage/saveable.go @@ -0,0 +1,7 @@ +package storage + +type Saveable[K comparable] interface { + Save(storage Storage[Saveable[K], K]) (K, error) + Update(storage Storage[Saveable[K], K]) (K, error) + Serialize() ([]byte, error) +} |
