Skip to content
/ name Public

Presenting names of people in full, familiar, abbreviated, and initialized forms.

License

Notifications You must be signed in to change notification settings

duffn/name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Name

Presenting names for English-language applications where a basic model of first and last name(s) combined is sufficient.

Based off of basecamp/name_of_person.

Installation

go get -u github.com/duffn/name

Examples

// The only possible error here is not providing a first name.
n, err := name.New("Bob", "Smith")

n.Full() // Bob Smith
n.Familiar() // Bob S.
n.Abbreviated() // B. Smith
n.Sorted() // Smith, Bob
n.Possessive() // Bob Smith's
n.Initials() // BS
n.Mentionable() // bobs

Tests

go test

License

MIT

About

Presenting names of people in full, familiar, abbreviated, and initialized forms.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages