SomeTitle returns this struct's title or, failing that, its tags - and even failing that, its IntID
()
| 152 | // SomeTitle returns this struct's title or, failing that, its tags - |
| 153 | // and even failing that, its IntID |
| 154 | func (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 |
| 165 | func (doc *document) dateYyyyMmDd() string { |