MCPcopy Index your code
hub / github.com/TruthHun/BookStack / Set

Method Set

utils/lock.go:22–26  ·  view source on GitHub ↗

设置

(bookId int)

Source from the content-addressed store, hash-verified

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

Callers 5

QrCodeMethod · 0.80
JsonResultMethod · 0.80
ResponseMethod · 0.80
CopyObjectFunction · 0.80
GenerateBookMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected