refine architecture
change module name to repo
This commit is contained in:
@@ -7,8 +7,8 @@ import (
|
||||
)
|
||||
|
||||
type Storage[T any] struct {
|
||||
path string
|
||||
mu sync.RWMutex
|
||||
path string
|
||||
Data *T
|
||||
}
|
||||
|
||||
@@ -51,4 +51,4 @@ func (s *Storage[T]) Init() error {
|
||||
return s.Save()
|
||||
}
|
||||
return s.Load()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user