bug fix,music player fix

This commit is contained in:
cuu
2023-01-22 08:33:10 +00:00
parent e59d572610
commit 057bcc86f1
8 changed files with 103 additions and 16 deletions

View File

@@ -54,7 +54,11 @@ func (stk *FolderStack) Last() string {
return stk.head.data.(string)
}
}
func (stk *FolderStack) Clear() {
for stk.Length() > 0 {
stk.Pop()
}
}
func NewFolderStack() *FolderStack {
stk := new(FolderStack)
stk.lock = &sync.Mutex{}