|
|
@ -1,9 +1,6 @@ |
|
|
package main |
|
|
package main |
|
|
|
|
|
|
|
|
import ( |
|
|
import "path/filepath" |
|
|
"path/filepath" |
|
|
|
|
|
"strings" |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
var extensions = map[string]bool{ |
|
|
var extensions = map[string]bool{ |
|
|
".htm": true, |
|
|
".htm": true, |
|
|
@ -17,5 +14,6 @@ func isMarkupFile(f string) bool { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func isHTMLFile(f string) bool { |
|
|
func isHTMLFile(f string) bool { |
|
|
return strings.HasSuffix(f, ".html") || strings.HasSuffix(f, ".htm") |
|
|
e := filepath.Ext(f) |
|
|
|
|
|
return e == ".html" || e == ".htm" |
|
|
} |
|
|
} |
|
|
|