func CleanWords(filename string) {
	var cleaned []string
	words := ReadingFileUnique(filename)
	if len(words) <= 0 {
		return
	}
	var IsLetter = regexp.MustCompile(`^[a-zA-Z_0-9\[\]]+$`).MatchString
	for _, word := range words {
		if strings.Contains(word, ".") {
			continue
		}
		if !IsLetter(word) {
			continue
		}
		cleaned = append(cleaned, word)
	}
	sort.Sort(sort.StringSlice(cleaned))
	WriteToFile(filename, strings.Join(cleaned, "\n"))
}
CleanWords clean wordlists
package core
import (
	"github.com/PuerkitoBio/goquery"
	"github.com/j3ssie/goverview/libs"
	"github.com/j3ssie/goverview/utils"
	"net/url"
	"regexp"
	"sort"
	"strings"
)