MCPcopy Create free account
hub / github.com/TruthHun/BookStack / init

Function init

models/book_counter.go:37–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35)
36
37func init() {
38 if _, err := os.Stat(bookCounterCacheDir); err != nil {
39 err = os.MkdirAll(bookCounterCacheDir, os.ModePerm)
40 if err != nil {
41 panic(err)
42 }
43 }
44}
45func NewBookCounter() *BookCounter {
46 return &BookCounter{}
47}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected