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
- Host: GitHub
- URL: https://github.com/mileusna/srb
- Owner: mileusna
- License: mit
- Created: 2016-01-04T19:01:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-07-30T22:39:29.000Z (almost 5 years ago)
- Last Synced: 2025-04-23T09:53:08.051Z (about 1 year ago)
- Topics: converts-string, cyrillic, go, golang, latin, serbian-language, srb
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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)