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

Function init

models/reading_time.go:39–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37)
38
39func init() {
40 if _, err := os.Stat(readingTimeCacheDir); err != nil {
41 err = os.MkdirAll(readingTimeCacheDir, os.ModePerm)
42 if err != nil {
43 panic(err)
44 }
45 }
46}
47
48func NewReadingTime() *ReadingTime {
49 return &ReadingTime{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected