https://github.com/dimaskiddo/angka-terbilang-go
Go package for Converting Decimal to an Indonesian Wording format
https://github.com/dimaskiddo/angka-terbilang-go
convertion decimal go indonesian package wording
Last synced: 4 months ago
JSON representation
Go package for Converting Decimal to an Indonesian Wording format
- Host: GitHub
- URL: https://github.com/dimaskiddo/angka-terbilang-go
- Owner: dimaskiddo
- Created: 2020-11-03T04:32:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-26T02:41:50.000Z (almost 4 years ago)
- Last Synced: 2025-01-06T20:36:38.662Z (5 months ago)
- Topics: convertion, decimal, go, indonesian, package, wording
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go package for Converting Decimal to an Indonesian Wording format
This package will help you to convert a decimal to an Indonesian wording format, for example `123` will be converted to `seratus dua puluh tiga`. This package was inspired from [develoka/angka-terbilang-js](https://github.com/develoka/angka-terbilang-js) by [Develoka Team](https://github.com/develoka).
## Getting Started
These instructions will get you this package can be used in your project.
### Prerequisites
Prequisites Packages:
* Go (Go Programming Language)### Using This Package
Below is the instructions to use this package:
* Import this package to your code
```go
...
import (
...
angka "github.com/dimaskiddo/angka-terbilang-go"
...
)
...
```
* Use ToTerbilang function to convert your decimal string
```go
...
fmtTerbilang := angka.ToTerbilang("123");
fmt.Println(fmtTerbilang);
...
```
* Download and make the package as vendor
```sh
GO111MODULE=on go mod vendor
```### Example Usage of Package
Below is the simple example source code:
```go
package mainimport (
angka "github.com/dimaskiddo/angka-terbilang-go"
)func main() {
fmt.Printf("%v\n", angka.ToTerbilang("123"));
}
```## Running The Tests
Currently the test is not ready yet :)
## Built With
* [Go](https://golang.org/) - Go Programming Languange
## Authors
* **Dimas Restu Hidayanto** - *Initial Work* - [DimasKiddo](https://github.com/dimaskiddo)
See also the list of [contributors](https://github.com/dimaskiddo/angka-terbilang-go/contributors) who participated in this project