zero

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2019 License: MIT Imports: 1 Imported by: 0

README

zero

Build Status GoDoc

detect and replace zero width characters in golang

install

go get github.com/ferhatelmas/zero

usage


import "github.com/ferhatelmas/zero"

s := "Lorem​Ipsum​Dolor"
zero.Has(s)
// true

zero.Replace(s, "|")
// Lorem|Ipsum|Dolor

zero.Replace(s, "")
// LoremIpsumDolor

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Has

func Has(s string) bool

Has checks if given string has a zero width character

func Replace

func Replace(s, rep string) string

Replace replaces zero width characters with given one

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL