https://github.com/owlsome-official/tobahttext
แปลงตัวเลขเป็นคำอ่านในภาษาไทย | Convert number to Thai words.
https://github.com/owlsome-official/tobahttext
baht converter golang library num2words number-converter thai thai-text thai-word utility
Last synced: 4 months ago
JSON representation
แปลงตัวเลขเป็นคำอ่านในภาษาไทย | Convert number to Thai words.
- Host: GitHub
- URL: https://github.com/owlsome-official/tobahttext
- Owner: owlsome-official
- Created: 2022-05-23T10:49:56.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-09-17T08:22:57.000Z (10 months ago)
- Last Synced: 2025-12-18T14:54:08.372Z (7 months ago)
- Topics: baht, converter, golang, library, num2words, number-converter, thai, thai-text, thai-word, utility
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ToBahtText
[](http://golang.org) [](https://pkg.go.dev/github.com/owlsome-official/toBahtText@v0.1.0) [](https://github.com/owlsome-official/toBahtText/issues) [](https://github.com/owlsome-official/toBahtText/network) [](https://github.com/owlsome-official/toBahtText/stargazers)
ToBahtText เป็น Golang library สำหรับแปลงตัวเลขเป็นคำอ่านภาษาไทย | ToBahtText is a Golang library for converting a number to the words.

## Table of Contents
- [ToBahtText](#tobahttext)
- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [Examples](#examples)
- [Dependencies](#dependencies)
- [Want some more example?](#want-some-more-example)
## Installation
```bash
go get -u github.com/owlsome-official/toBahtText
```
## Examples
```go
words := toBahtText.From("2021")
fmt.Println(words) // "สองพันยี่สิบเอ็ด"
```
## Dependencies
- Only [https://github.com/stretchr/testify](https://github.com/stretchr/testify)
## Want some more example?
Go to [toBahtText_test.go](toBahtText_test.go)
> Made with ❤️ Powered by Watsize