2
0
Files
translit/translit_test.go
T

27 lines
432 B
Go

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