n2n

package module
v0.0.0-...-33088c7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

n2n

Usage programatically:

package main

import (
    "fmt"

    "github.com/aoktayd/n2n"
)

func main() {
    var number uint64 = 64
    numeral := n2n.Numeral(number)
    fmt.Println(numeral) // "sixty-four"
}

Usage cli:

$ go install github.com/aoktayd/n2n/cmd/n2n
$ n2n 1024
// Output:
// one thousand, twenty-four

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Numeral

func Numeral(number uint64) string

Numeral converts a number to an English numeral

Example
n := Numeral(1024)
fmt.Println(n)
Output:
one thousand, twenty-four

Types

This section is empty.

Directories

Path Synopsis
cmd
n2n command

Jump to

Keyboard shortcuts

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