DocumentBaseBuildImage creates basic document information for image type
(name string, fileID int64)
| 358 | |
| 359 | // DocumentBaseBuildImage creates basic document information for image type |
| 360 | func DocumentBaseBuildImage(name string, fileID int64) *DocumentBase { |
| 361 | return &DocumentBase{ |
| 362 | Name: name, |
| 363 | SourceInfo: DocumentSourceInfoBuildImage(fileID), |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | // DocumentSourceInfoBuildWebPage creates document source information for webpage type |
| 368 | func DocumentSourceInfoBuildWebPage(url string) *DocumentSourceInfo { |
nothing calls this directly
no test coverage detected