Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TruthHun/BookStack
/ NewDocument
Function
NewDocument
models/document.go:73–77 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
71
}
72
73
func
NewDocument() *Document {
74
return
&Document{
75
Version: time.Now().Unix(),
76
}
77
}
78
79
//根据文档ID查询指定文档.
80
func
(m *Document) Find(id int) (doc *Document, err error) {
Callers
15
Read
Method · 0.92
ReadBook
Method · 0.92
Edit
Method · 0.92
Create
Method · 0.92
Upload
Method · 0.92
RemoveAttachment
Method · 0.92
Delete
Method · 0.92
Content
Method · 0.92
History
Method · 0.92
DeleteHistory
Method · 0.92
RestoreHistory
Method · 0.92
Compare
Method · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected