Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 456 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 456 Bytes

Golang bindings for libvarnam

package main

import "fmt"
import "github.com/varnamproject/libvarnam-golang"

func main() {
	varnam, err := libvarnam.Init("hi")
	if err != nil {
		fmt.Errorf("Failed to initialize varnam. %s", err.Error())
	}

	words, err := varnam.Transliterate("bharat")
	if err != nil {
		fmt.Errorf("Failed to transliterate. %s", err.Error())
	}

	for _, word := range words {
		fmt.Printf("%s\n", word)
	}
}