opesun/slugify — pull request #4 by sauerbraten (2012-10-15 18:35:01+00:00)
Title: use map; use strings.TrimSpace() instead of strings.Trim(); comments

sooo, I had some spare time and made the switch to a map as you suggested: slugify now uses a map. this gives better performance. also, strings.Trim() -> strings.TrimWhitespace() plus some comment fixes/additions. Also, I cleaned up the _test.go file (was a bit messy, different package, then imported slugify, then called slugify.S() every time).