Releases: longbridge/autocorrect
Releases · longbridge/autocorrect
v1.2.0
v1.1.1
v1.0.1
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 即将发布"