Install

Add dependency to go.mod:

go get github.com/paiv/uklatn/go/uklatn

Usage

import "github.com/paiv/uklatn/go/uklatn"

uklatn.EncodeString("Доброго вечора!", uklatn.DefaultTable)
uklatn.DecodeString("Paljanycja", uklatn.DefaultTable)

Select a transliteration scheme:

uklatn.EncodeString("Борщ", uklatn.DSTU_9112_A)

Notes

Input is assumed to be in Ukrainian (Cyrillic or Latin script), and will be processed in full. If your data has mixed languages, do preprocessing to extract Ukrainian chunks.