DocumentBaseBuildLocalFile creates basic document information for local file type
(name string, content string, fileType string)
| 350 | |
| 351 | // DocumentBaseBuildLocalFile creates basic document information for local file type |
| 352 | func DocumentBaseBuildLocalFile(name string, content string, fileType string) *DocumentBase { |
| 353 | return &DocumentBase{ |
| 354 | Name: name, |
| 355 | SourceInfo: DocumentSourceInfoBuildLocalFile(content, fileType), |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | // DocumentBaseBuildImage creates basic document information for image type |
| 360 | func DocumentBaseBuildImage(name string, fileID int64) *DocumentBase { |