Skip to content

Go package for Converting Decimal to an Indonesian Wording format

Notifications You must be signed in to change notification settings

dimaskiddo/angka-terbilang-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 by Develoka Team.

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
...
import (
  ...
  angka "github.com/dimaskiddo/angka-terbilang-go"
  ...
)
...
  • Use ToTerbilang function to convert your decimal string
...
  fmtTerbilang := angka.ToTerbilang("123");
  fmt.Println(fmtTerbilang);
...
  • Download and make the package as vendor
GO111MODULE=on go mod vendor

Example Usage of Package

Below is the simple example source code:

package main

import (
  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 - Go Programming Languange

Authors

  • Dimas Restu Hidayanto - Initial Work - DimasKiddo

See also the list of contributors who participated in this project

About

Go package for Converting Decimal to an Indonesian Wording format

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages