package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Sep 29, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
zero

detect and replace zero width characters in golang
install
go get github.com/ferhatelmas/zero
usage
import "github.com/ferhatelmas/zero"
s := "LoremIpsumDolor"
zero.Has(s)
// true
zero.Replace(s, "|")
// Lorem|Ipsum|Dolor
zero.Replace(s, "")
// LoremIpsumDolor
Documentation
¶
Has checks if given string has a zero width character
Replace replaces zero width characters with given one
Source Files
¶
Click to show internal directories.
Click to hide internal directories.