Skip to content
/ srb Public

Go (golang) package for converting strings to/from Cyrillic/Latin for Serbian language and other utilities

License

Notifications You must be signed in to change notification settings

mileusna/srb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Srb for Go GoDoc

Package srb converts string to/from Cyrillic/Latin for Serbian language, including some other utility functions for Serbian script.

Examples

package main

import (
	"fmt"
	"github.com/mileusna/srb"
)

func main() {
    fmt.Println(srb.ToCyr("Kragujevac"))
    fmt.Println(srb.ToLat("кошарка"))
	fmt.Println(srb.HasCyr("Ima li ћирилице u ovom stringu?"))
    fmt.Println(srb.FixDj("Novak Djoković"))
    fmt.Println(srb.HTMLToCyr("<h1><a href='http://naslovi.net/'>Vesti dana</a></h1>"))
    fmt.Println(srb.ToASCII("Miloš"))
}

License

MIT

About

Go (golang) package for converting strings to/from Cyrillic/Latin for Serbian language and other utilities

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages