mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 21:48:06 +01:00
This commit is contained in:
parent
acfe78a1d2
commit
1c4c0c5192
3 changed files with 19 additions and 0 deletions
|
|
@ -144,6 +144,16 @@ func CreateDeck(name string) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
func GetDecks() (ret []string) {
|
||||
deckLock.Lock()
|
||||
defer deckLock.Unlock()
|
||||
|
||||
for name := range Decks {
|
||||
ret = append(ret, name)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func SaveDeck(name string) (err error) {
|
||||
deckLock.Lock()
|
||||
deck := Decks[name]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue