mirror of https://github.com/nmasse-itix/liche.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
209 B
14 lines
209 B
package main
|
|
|
|
import "path/filepath"
|
|
|
|
var extensions = map[string]bool{
|
|
".htm": true,
|
|
".html": true,
|
|
".md": true,
|
|
}
|
|
|
|
func isMarkupFile(f string) bool {
|
|
_, ok := extensions[filepath.Ext(f)]
|
|
return ok
|
|
}
|
|
|