Versions in this module Expand all Collapse all v0 v0.3.4 Mar 9, 2018 Changes in this version + const Legal + var DictAmerican = []string + var DictBritish = []string + var DictMain = []string + func ByteEqualFold(a, b byte) bool + func ByteToLower(eax byte) byte + func ByteToUpper(x byte) byte + func CaseVariations(word string, style WordCase) []string + func ReadTextFile(filename string) (string, error) + func RemoveEmail(s string) string + func RemoveHost(s string) string + func RemoveNotWords(s string) string + func RemovePath(s string) string + func StringEqualFold(s1, s2 string) bool + func StringHasPrefixFold(s1, s2 string) bool + func StripURL(s string) string + type Diff struct + Column int + Corrected string + Filename string + FullLine string + Line int + Original string + type Replacer struct + Debug bool + Replacements []string + func New() *Replacer + func (r *Replacer) AddRuleList(additions []string) + func (r *Replacer) Compile() + func (r *Replacer) RemoveRule(ignore []string) + func (r *Replacer) Replace(input string) (string, []Diff) + func (r *Replacer) ReplaceGo(input string) (string, []Diff) + func (r *Replacer) ReplaceReader(raw io.Reader, w io.Writer, next func(Diff)) error + type StringReplacer struct + func NewStringReplacer(oldnew ...string) *StringReplacer + func (r *StringReplacer) Replace(s string) string + func (r *StringReplacer) WriteString(w io.Writer, s string) (n int, err error) + type WordCase int + const CaseLower + const CaseTitle + const CaseUnknown + const CaseUpper + func CaseStyle(word string) WordCase