numeronym

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 2 Imported by: 0

README

go-numeronym

go-numeronym provides the function Numeronize to contract a word as Numeronym.

Usage

package main

import (
    "fmt"
    "github.com/bayashi/go-numeronym"
)

func main() {
    fmt.Println(numeronym.Numeronize("internationalization")) // i18n
}

For CLI

You can use n7m command to make numeronym in several ways.

$ n7m internationalization
i18n

$ echo internationalization | n7m
i18n

$ cat file.txt
internationalization
$ n7m < file.txt
i18n
Installation of n7m
go install github.com/bayashi/go-numeronym/cmd/n7m@latest

Binaries are here: https://github.com/bayashi/go-numeronym/releases

License

MIT

Author

Dai Okabayashi: @bayashi

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Numeronize

func Numeronize(word string) string

Types

This section is empty.

Directories

Path Synopsis
cmd
n7m

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳