mirror of
https://git.sr.ht/~sircmpwn/aerc
synced 2024-11-23 16:42:07 +01:00
19 lines
284 B
Go
19 lines
284 B
Go
package lib
|
|
|
|
type DirStore struct {
|
|
dirs []string
|
|
}
|
|
|
|
func NewDirStore() *DirStore {
|
|
return &DirStore{}
|
|
}
|
|
|
|
func (store *DirStore) Update(dirs []string) {
|
|
store.dirs = make([]string, len(dirs))
|
|
copy(store.dirs, dirs)
|
|
}
|
|
|
|
func (store *DirStore) List() []string {
|
|
return store.dirs
|
|
}
|