Skip to content
/ gopiah Public

Go library to converts number into Indonesian Rupiah format currency!

License

Notifications You must be signed in to change notification settings

ezrantn/gopiah

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Rupiah Currency Converter

This is a small Go library for converting numbers into Indonesian Rupiah (Rp) currency format. It's a convenient tool for formatting monetary values in the Indonesian style, with thousands separators and decimal points. Remember that this return value is of type string.

Installation

To use this library, you can import it into your Go project like this:

go get github.com/ezrantn/gopiah

Usage

To convert a number into Rupiah currency format, you can use the gopiah.ConvertToRupiah function:

package main

import (
    "fmt"
    "github.com/ezrantn/gopiah"
)

func main() {
    number := 1234567
    rupiah := gopiah.ConvertToRupiah(number)
    fmt.Println(rupiah) // Output: "Rp. 1.234.567,00"
}

Contributing

If you find any issues or have suggestions for improvements, feel free to create a pull request or open an issue on the GitHub repository. Your contributions are welcome! 😀

License

This library is licensed under the MIT License. See the LICENSE file for details.

Made with ❤️ by Ezra Natanael

About

Go library to converts number into Indonesian Rupiah format currency!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages