Documentation
ΒΆ
Index ΒΆ
- Constants
- func After(input string) string
- func ChangeUnicode(unicode string) string
- func EnglishToKo(input string) string
- func KoToEnglish(input string) string
- func PreBelittle(input string) string
- func PreGeneral(input string) string
- func PreMinor(input string) string
- func PreParent(input string) string
- func PrePolitics(input string) string
- func PreSexual(input string) string
- func RemoveDomain(input string) string
- func RemoveDuplicate(input string) string
- func RemoveEnglish(input string) string
- func RemoveJ(input string) string
- func RemoveNumber(input string) string
- type CheckInfo
- type IndexOF
- func Belittle(input string, continues bool) (bool, []IndexOF)
- func CList(list *[]string, types int, input string, continues bool) (bool, []IndexOF)
- func Chinese(input string, continues bool) (bool, []IndexOF)
- func English(input string, continues bool) (bool, []IndexOF)
- func General(input string, continues bool) (bool, []IndexOF)
- func Japanese(input string, continues bool) (bool, []IndexOF)
- func Minor(input string, continues bool) (bool, []IndexOF)
- func Parent(input string, continues bool) (bool, []IndexOF)
- func Politics(input string, continues bool) (bool, []IndexOF)
- func Race(input string, continues bool) (bool, []IndexOF)
- func Sexual(input string, continues bool) (bool, []IndexOF)
- func Special(input string, continues bool) (bool, []IndexOF)
- type Profanity
Constants ΒΆ
const ( DNone int = iota DGeneral DMinor DSexual DBelittle DRace DParent DPolitics DEnglish DJapanese DChinese DSpecial )
λΉμμ΄μ μ ν
Variables ΒΆ
This section is empty.
Functions ΒΆ
func ChangeUnicode ΒΆ
func EnglishToKo ΒΆ added in v0.7.3
func KoToEnglish ΒΆ added in v0.8.4
func PreBelittle ΒΆ added in v0.7.3
func PreGeneral ΒΆ added in v0.7.3
func PrePolitics ΒΆ added in v0.7.3
func RemoveDomain ΒΆ added in v0.8.1
func RemoveDuplicate ΒΆ added in v0.7.3
func RemoveEnglish ΒΆ added in v0.8.3
func RemoveNumber ΒΆ added in v0.7.3
Types ΒΆ
type CheckInfo ΒΆ
type CheckInfo struct { Detect bool // λΉμμ΄ κ°μ§ μ¬λΆ NewText string // μ λ ₯λ λ©μμ§ Swear []IndexOF // κ°μ§λ λΉμμ΄ }
func Check ΒΆ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ λΉμμ΄ κ°μ§ λ° κ²°κ³Ό λ°ν ν¨μ μ λ ₯:
input: λΉμμ΄κ° ν¬ν¨λ μ μλ λ¬Έμμ΄.
μΆλ ₯:
*CheckInfo: struct { Detect bool // λΉμμ΄ κ°μ§ μ¬λΆ Swear string // κ°μ§λ λΉμμ΄ Type int // λΉμμ΄μ μ ν }
type IndexOF ΒΆ added in v0.7.0
type IndexOF struct { Swear string // κ°μ§λ λΉμμ΄ Type int // κ°μ§λ λΉμμ΄μ μ ν Start int // μμμμΉ End int // μ’ λ£μμΉ }
func Belittle ΒΆ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ λΉνλ°μΈκ΄λ ¨ λΉμμ΄ κ°μ§ λ° κ²°κ³Ό λ°ν ν¨μ μ λ ₯:
input: λΉμμ΄κ° ν¬ν¨λ μ μλ λ¬Έμμ΄.
μΆλ ₯:
bool: λΉμμ΄κ° ν¬ν¨λ κ²½μ° true, κ·Έλ μ§ μμΌλ©΄ false. string: κ°μ§λ λΉμμ΄κ° μμΌλ©΄ ν΄λΉ λΉμμ΄λ₯Ό, μμΌλ©΄ λΉ λ¬Έμμ΄("")μ λ°ν.
func Chinese ΒΆ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ μ€κ΅μ΄κ΄λ ¨ λΉμμ΄ κ°μ§ λ° κ²°κ³Ό λ°ν ν¨μ μ λ ₯:
input: λΉμμ΄κ° ν¬ν¨λ μ μλ λ¬Έμμ΄.
μΆλ ₯:
bool: λΉμμ΄κ° ν¬ν¨λ κ²½μ° true, κ·Έλ μ§ μμΌλ©΄ false. string: κ°μ§λ λΉμμ΄κ° μμΌλ©΄ ν΄λΉ λΉμμ΄λ₯Ό, μμΌλ©΄ λΉ λ¬Έμμ΄("")μ λ°ν.
func English ΒΆ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ μμ΄κ΄λ ¨ λΉμμ΄ κ°μ§ λ° κ²°κ³Ό λ°ν ν¨μ μ λ ₯:
input: λΉμμ΄κ° ν¬ν¨λ μ μλ λ¬Έμμ΄.
μΆλ ₯:
bool: λΉμμ΄κ° ν¬ν¨λ κ²½μ° true, κ·Έλ μ§ μμΌλ©΄ false. string: κ°μ§λ λΉμμ΄κ° μμΌλ©΄ ν΄λΉ λΉμμ΄λ₯Ό, μμΌλ©΄ λΉ λ¬Έμμ΄("")μ λ°ν.
func General ΒΆ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ μΌλ°μ μΈ λΉμμ΄ κ°μ§ λ° κ²°κ³Ό λ°ν ν¨μ μ λ ₯:
input: λΉμμ΄κ° ν¬ν¨λ μ μλ λ¬Έμμ΄.
μΆλ ₯:
bool: λΉμμ΄κ° ν¬ν¨λ κ²½μ° true, κ·Έλ μ§ μμΌλ©΄ false. string: κ°μ§λ λΉμμ΄κ° μμΌλ©΄ ν΄λΉ λΉμμ΄λ₯Ό, μμΌλ©΄ λΉ λ¬Έμμ΄("")μ λ°ν.
func Japanese ΒΆ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ μΌλ³Έμ΄κ΄λ ¨ λΉμμ΄ κ°μ§ λ° κ²°κ³Ό λ°ν ν¨μ μ λ ₯:
input: λΉμμ΄κ° ν¬ν¨λ μ μλ λ¬Έμμ΄.
μΆλ ₯:
bool: λΉμμ΄κ° ν¬ν¨λ κ²½μ° true, κ·Έλ μ§ μμΌλ©΄ false. string: κ°μ§λ λΉμμ΄κ° μμΌλ©΄ ν΄λΉ λΉμμ΄λ₯Ό, μμΌλ©΄ λΉ λ¬Έμμ΄("")μ λ°ν.
func Minor ΒΆ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ μ¬μν λΉμμ΄ κ°μ§ λ° κ²°κ³Ό λ°ν ν¨μ μ λ ₯:
input: λΉμμ΄κ° ν¬ν¨λ μ μλ λ¬Έμμ΄.
μΆλ ₯:
bool: λΉμμ΄κ° ν¬ν¨λ κ²½μ° true, κ·Έλ μ§ μμΌλ©΄ false. string: κ°μ§λ λΉμμ΄κ° μμΌλ©΄ ν΄λΉ λΉμμ΄λ₯Ό, μμΌλ©΄ λΉ λ¬Έμμ΄("")μ λ°ν.
func Parent ΒΆ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ν¨λ립κ΄λ ¨ λΉμμ΄ κ°μ§ λ° κ²°κ³Ό λ°ν ν¨μ μ λ ₯:
input: λΉμμ΄κ° ν¬ν¨λ μ μλ λ¬Έμμ΄.
μΆλ ₯:
bool: λΉμμ΄κ° ν¬ν¨λ κ²½μ° true, κ·Έλ μ§ μμΌλ©΄ false. string: κ°μ§λ λΉμμ΄κ° μμΌλ©΄ ν΄λΉ λΉμμ΄λ₯Ό, μμΌλ©΄ λΉ λ¬Έμμ΄("")μ λ°ν.
func Politics ΒΆ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ μ μΉκ΄λ ¨ λΉμμ΄ κ°μ§ λ° κ²°κ³Ό λ°ν ν¨μ μ λ ₯:
input: λΉμμ΄κ° ν¬ν¨λ μ μλ λ¬Έμμ΄.
μΆλ ₯:
bool: λΉμμ΄κ° ν¬ν¨λ κ²½μ° true, κ·Έλ μ§ μμΌλ©΄ false. string: κ°μ§λ λΉμμ΄κ° μμΌλ©΄ ν΄λΉ λΉμμ΄λ₯Ό, μμΌλ©΄ λΉ λ¬Έμμ΄("")μ λ°ν.
func Race ΒΆ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ μΈμ’ μ°¨λ³κ΄λ ¨ λΉμμ΄ κ°μ§ λ° κ²°κ³Ό λ°ν ν¨μ μ λ ₯:
input: λΉμμ΄κ° ν¬ν¨λ μ μλ λ¬Έμμ΄.
μΆλ ₯:
bool: λΉμμ΄κ° ν¬ν¨λ κ²½μ° true, κ·Έλ μ§ μμΌλ©΄ false. string: κ°μ§λ λΉμμ΄κ° μμΌλ©΄ ν΄λΉ λΉμμ΄λ₯Ό, μμΌλ©΄ λΉ λ¬Έμμ΄("")μ λ°ν.
func Sexual ΒΆ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ μ±μ κ΄λ ¨ λΉμμ΄ κ°μ§ λ° κ²°κ³Ό λ°ν ν¨μ μ λ ₯:
input: λΉμμ΄κ° ν¬ν¨λ μ μλ λ¬Έμμ΄.
μΆλ ₯:
bool: λΉμμ΄κ° ν¬ν¨λ κ²½μ° true, κ·Έλ μ§ μμΌλ©΄ false. string: κ°μ§λ λΉμμ΄κ° μμΌλ©΄ ν΄λΉ λΉμμ΄λ₯Ό, μμΌλ©΄ λΉ λ¬Έμμ΄("")μ λ°ν.
func Special ΒΆ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ μ λ ₯:
input: λΉμμ΄κ° ν¬ν¨λ μ μλ λ¬Έμμ΄.
μΆλ ₯:
bool: λΉμμ΄κ° ν¬ν¨λ κ²½μ° true, κ·Έλ μ§ μμΌλ©΄ false. string: κ°μ§λ λΉμμ΄κ° μμΌλ©΄ ν΄λΉ λΉμμ΄λ₯Ό, μμΌλ©΄ λΉ λ¬Έμμ΄("")μ λ°ν.