numeronym

package module
v0.0.0-...-859fcc2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2016 License: BSD-2-Clause-Views Imports: 2 Imported by: 7

README

Numeronym

This is just a simple library that creates numeronyms (i18n => internationalization).

To install just do a simple go get github.com/juztin/numeronym
To use:

package main

import (
	"fmt"

	"github.com/juztin/numeronym"
)

func main() {
	text := []byte("internationalization")
	b := numeronym.Parse(text)
	fmt.Println(string(b))

	// OUTPUTS:
	//	i18n
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(b []byte) []byte

Parse returns numeronym(s) of the given ASCII bytes. For example:

"internationalization" => "i18n"
"ab_cdefg"             => "ab_c3g"

Types

This section is empty.

Jump to

Keyboard shortcuts

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