normadresse

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

README

go-normadresse

GoDoc Go Report Card License GitHub release

French Postal Addresses Normalizer (Golang port of etalab/normadresse)

Usage

Install with go get github.com/united-drivers/go-normadresse

import "github.com/united-drivers/go-normadresse"

fmt.Println(strings.ToUpper(normadresse.Normalize("BOULEVARD DU MARECHAL JEAN MARIE DE LATTRE DE TASSIGNY")))
// Output: BD MAL J M DE LATTRE DE TASSIGNY

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(input string) string
Example
fmt.Println(strings.ToUpper(Normalize("BOULEVARD DU MARECHAL JEAN MARIE DE LATTRE DE TASSIGNY")))
Output:

BD MAL J M DE LATTRE DE TASSIGNY

func NormalizeLength

func NormalizeLength(str string, maxLen int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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