num2text

package module
v0.0.0-...-59036bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

README

num2text

converts numbers to persian text.

Usage

Library
package main

import (
	"fmt"

	"github.com/AliiAhmadi/num2text"
)

func main() {
	number := "123"
	r, err := num2text.Convert(number)
	if err != nil {
		panic(err)
	}

	fmt.Println(r) // صد و بیست و سه
}
CLI
Usage of num2text:
  -number string
        number you want to convert (default "0")
num2text -number=-.23
// Result: منفی بیست و سه صدم

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(num string) (string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL