MCPcopy Index your code
hub / github.com/perkeep/perkeep / someTitle

Method someTitle

app/scanningcabinet/models.go:154–162  ·  view source on GitHub ↗

SomeTitle returns this struct's title or, failing that, its tags - and even failing that, its IntID

()

Source from the content-addressed store, hash-verified

152// SomeTitle returns this struct's title or, failing that, its tags -
153// and even failing that, its IntID
154func (doc *document) someTitle() string {
155 if doc.title != "" {
156 return doc.title
157 }
158 if doc.tags.isEmpty() {
159 return fmt.Sprintf("Doc Ref %s", doc.permanode)
160 }
161 return strings.Join(doc.tags, ",")
162}
163
164// DateYyyyMmDd formats this struct's DocDate according to the DateformatYyyyMmDd const
165func (doc *document) dateYyyyMmDd() string {

Callers 1

MakeViewModelMethod · 0.95

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected