书籍发布锁和书籍离线文档生成锁
| 6 | |
| 7 | //书籍发布锁和书籍离线文档生成锁 |
| 8 | type BooksLock struct { |
| 9 | Books map[int]bool |
| 10 | Lock sync.RWMutex |
| 11 | } |
| 12 | |
| 13 | //查询是否存在 |
| 14 | func (this BooksLock) Exist(bookId int) (exist bool) { |
nothing calls this directly
no outgoing calls
no test coverage detected