utils.go 231 B

1234567891011
  1. package statistic
  2. func isWebPageExtension(ext string) bool {
  3. webPageExts := []string{".html", ".htm", ".php", ".jsp", ".aspx", ".js", ".jsx"}
  4. for _, e := range webPageExts {
  5. if e == ext {
  6. return true
  7. }
  8. }
  9. return false
  10. }