package scan import ( "path/filepath" "strings" ) func isPDF(path string) bool { return strings.ToLower(filepath.Ext(path)) == pdfExt }