An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# ToBahtText

[![made-with-Go](https://img.shields.io/badge/Made%20with-Go-1f425f.svg)](http://golang.org) [![Go Reference](https://pkg.go.dev/badge/github.com/owlsome-official/toBahtText@v0.1.0.svg)](https://pkg.go.dev/github.com/owlsome-official/toBahtText@v0.1.0) [![GitHub issues](https://img.shields.io/github/issues/owlsome-official/toBahtText)](https://github.com/owlsome-official/toBahtText/issues) [![GitHub forks](https://img.shields.io/github/forks/owlsome-official/toBahtText)](https://github.com/owlsome-official/toBahtText/network) [![GitHub stars](https://img.shields.io/github/stars/owlsome-official/toBahtText)](https://github.com/owlsome-official/toBahtText/stargazers)

ToBahtText เป็น Golang library สำหรับแปลงตัวเลขเป็นคำอ่านภาษาไทย | ToBahtText is a Golang library for converting a number to the words.

logo

## 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