wip: parse & use config file, start Storage struct/interface

This commit is contained in:
Michael Hohn
2024-05-13 12:56:00 -07:00
committed by =Michael Hohn
parent c2480dc2f1
commit 5b324e092a
7 changed files with 34 additions and 20 deletions

View File

@@ -1,4 +1,10 @@
package lsmem
type Storage struct {
CurrentID int
}
func (s *Storage) NextID() int {
s.CurrentID += 1
return s.CurrentID
}