v1.0.0
Format
,FormatHTML
,Unformat
,UnformatHTML
support custom option for addition processes.
Example:
type myFormatter struct {}
func (my myFormatter) Format(text string) string {
return strings.ReplaceAll(text, "ios", "iOS")
}
autocorrect.Format("新版本ios即将发布", myFormatter{})
// "新版本 iOS 即将发布"