summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2024-06-05 12:26:37 -0600
committermo khan <mo@mokhan.ca>2024-06-05 12:26:37 -0600
commit620b3a0be81070872c8c990a1aecdc0e661dc90e (patch)
tree9d735c06b54a48607fe28cfbf35b161a30647244 /pkg
parent5ee7e972f659afb951944873de024f88c1d1b149 (diff)
Start to define a storage interface for saving each issue
Diffstat (limited to 'pkg')
-rw-r--r--pkg/db/client.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/db/client.go b/pkg/db/client.go
new file mode 100644
index 0000000..39d3f9e
--- /dev/null
+++ b/pkg/db/client.go
@@ -0,0 +1,15 @@
+package db
+
+type Storage[T any] struct {
+ dir string
+}
+
+func New[T any](dir string) *Storage[T] {
+ return &Storage[T]{
+ dir: dir,
+ }
+}
+
+func (db *Storage[T]) Save(item T) error {
+ return nil
+}