2
0
Files
translit/translit_test.go
T
Dmitry Sedykh 93f647e1c7 update library
2023-06-11 12:12:54 +03:00

27 lines
430 B
Go

package translit_test
import (
"fmt"
"github.com/mdigger/translit"
)
func ExampleRuTranslit() {
tests := []string{
"Проверочная СТРОКА для транслитерации",
"ЧАЩА",
"ЧаЩа",
"Чаща",
"чаЩА",
}
for _, text := range tests {
fmt.Println(translit.Ru(text))
}
// Output:
// Proverochnaja STROKA dlja transliteracii
// CHASCHA
// ChaScha
// Chascha
// chaSCHA
}