/StateAbbreviation

Go Lib, given a (partial) name of a US state returns back correct abbreviation

Primary LanguageGo

State Abbreviation

Simple Script that gives you a given state's abbreviation. Can pass in either full name of state or an abbreviations

e.g

actual := GetAbbreviation(state)

"Pennsylvania" -> "PA"
"Ore."         -> "OR"
"Ore."         -> "OR"
"N.H."         -> "NH"