package statistic func isWebPageExtension(ext string) bool { webPageExts := []string{".html", ".htm", ".php", ".jsp", ".aspx", ".js", ".jsx"} for _, e := range webPageExts { if e == ext { return true } } return false }