From 2fd0516711ba492f44f42fc750271fd2111ed972 Mon Sep 17 00:00:00 2001 From: Artem Henvald Date: Thu, 26 May 2022 15:09:30 +0300 Subject: [PATCH] Refactoring --- README.md | 6 +++--- transliteration.go | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 477b1d5..5293822 100644 --- a/README.md +++ b/README.md @@ -45,9 +45,9 @@ func main() { ###### bash ```bash -$ go get "github.com/fre5h/transliteration-go"@v1.1.0 -go: downloading github.com/fre5h/transliteration-go v1.1.0 -go: added github.com/fre5h/transliteration-go v1.1.0 +$ go get "github.com/fre5h/transliteration-go"@v1.1.2 +go: downloading github.com/fre5h/transliteration-go v1.1.2 +go: added github.com/fre5h/transliteration-go v1.1.2 $ go run main.go Слава Україні! transliterated text: Slava Ukraini! diff --git a/transliteration.go b/transliteration.go index d3a918e..6cf9a7b 100644 --- a/transliteration.go +++ b/transliteration.go @@ -74,9 +74,7 @@ func UkrToLat(ukrainianText string) (transliteratedText string) { return } -func processZghException(firstChar rune, secondChar rune) (result string) { - result = "" - +func processZghException(firstChar, secondChar rune) (result string) { if firstChar == 'З' && secondChar == 'г' { result = "Zgh" } else if firstChar == 'З' && secondChar == 'Г' {