18 lines
247 B
Go
18 lines
247 B
Go
|
|
package content
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/go-enry/go-enry/v2"
|
||
|
|
)
|
||
|
|
|
||
|
|
const (
|
||
|
|
Version = "1.0.0"
|
||
|
|
)
|
||
|
|
|
||
|
|
func DetectLanguage(text string) string {
|
||
|
|
return enry.GetLanguage("", []byte(text))
|
||
|
|
}
|
||
|
|
|
||
|
|
func Filter(text string) string {
|
||
|
|
return FilterBasic(text, nil)
|
||
|
|
}
|