Skip to content

artykaikub/go-thaibaht

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-thaibaht

go-thaibaht is a simple library for convert number to thai baht as text

Hit the project with a star if you find it useful ⭐

Installation

go get github.com/artykaikub/go-thaibaht

Example

package main

import (
	"log"
	gothaibaht "github.com/artykaikub/go-thaibaht"
)

func main() {
	text := gothaibaht.ToText(123456789.99)
	fmt.Print(text)
	// output: หนึ่งร้อยยี่สิบสามล้านสี่แสนห้าหมื่นหกพันเจ็ดร้อยแปดสิบเก้าบาทเก้าสิบเก้าสตางค์
}

Releases

No releases published

Packages

No packages published

Languages