slav123 / sanitize

Sanitizes strings in GoLang by removing regional characters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sanitize

Go Report Card License

Super simple function to clean up string from regional characters:

Sławomir Jasiński -> Slawomir Jasinski

Installation

$ go get github.com/slav123/sanitize

##Usage

package main

import (
   "github.com/slav123/sanitize"
   "fmt"
)

func main() {
    fmt.Println(sanitize.Accents("gąska"))
}

gives you

gaska

Checkout on The Go Playground

About

Sanitizes strings in GoLang by removing regional characters

License:MIT License


Languages

Language:Go 100.0%