Skip to content

Go module for generate Thai text and Baht currency text from number.

License

Notifications You must be signed in to change notification settings

joofjang/numgothai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

numgothai

Go module for generate Thai text and Baht currency text from number.

Usage

package main

import (
	"fmt"

	"github.com/joofjang/numgothai"
)

func main() {
	fmt.Println(numgothai.IntText(1500)) //หนึ่งพันห้าร้อย
	fmt.Println(numgothai.IntBaht(150050)) //หนึ่งพันห้าร้อยบาทห้าสิบสตางค์
}

Go Test and Build

About

Go module for generate Thai text and Baht currency text from number.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages