设置
(bookId int)
| 20 | |
| 21 | //设置 |
| 22 | func (this BooksLock) Set(bookId int) { |
| 23 | this.Lock.RLock() |
| 24 | defer this.Lock.RUnlock() |
| 25 | this.Books[bookId] = true |
| 26 | } |
| 27 | |
| 28 | //删除 |
| 29 | func (this BooksLock) Delete(bookId int) { |
no outgoing calls
no test coverage detected