package drive import _ "embed" //go:embed testdata/blank.docx var blankDocx []byte //go:embed testdata/blank.xlsx var blankXlsx []byte //go:embed testdata/blank.pptx var blankPptx []byte func blankOfficeFile(kind NewFileKind) ([]byte, string) { switch kind { case NewFileDocument: return blankDocx, "application/vnd.openxmlformats-officedocument.wordprocessingml.document" case NewFileSpreadsheet: return blankXlsx, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" case NewFilePresentation: return blankPptx, "application/vnd.openxmlformats-officedocument.presentationml.presentation" default: return nil, "" } }