An open API service indexing awesome lists of open source software.

https://github.com/mileusna/srb

Go (golang) package for converting strings to/from Cyrillic/Latin for Serbian language and other utilities
https://github.com/mileusna/srb

converts-string cyrillic go golang latin serbian-language srb

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Srb for Go GoDoc

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

## Examples

```Go
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("

Vesti dana

"))
fmt.Println(srb.ToASCII("Miloš"))
}
```

## License

[MIT](LICENSE)