GitShow/fatih/camelcase
fatih

camelcase

Split a camelcase word into a slice of words in Go

by fatih
Star on GitHubForkWebsite

Go

183 stars25 forks3 contributorsQuiet · 5y agoSince 2015v1.0.0MIT

Meet the team

See all 3 on GitHub →
fatih
fatih15 contributions
petemoore
petemoore2 contributions
dvrkps
dvrkps1 contribution

Languages

View on GitHub →
Go100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 5y ago
See all on GitHub →
wujiang
192ndDay -> 192nd DayOpenPR
wujiang · 5y ago

Recent fixes

View closed PRs →
fatih
Use GitHub ActionsMergedPR
fatih · 5y ago
dvrkps
travis: update go versionMergedPR
dvrkps · 8y ago
petemoore
Now works with with non-ascii charactersMergedPR

@fatih When ranging over a string, the index does not necessarily increase by one byte with each iteration. For example, see https://play.golang.org/p/ATNWjRKS4f. This means expressions like are invalid if previous rune is more than one byte in size (it will represent previous byte, not previous rune). This fix reads the string into an array of runes, and operates on that, rather than the underlying bytes of the string directly. I've added a test to demonstrate the fix. I've also switched the tests to being an example - so the split test cases don't need to be duplicated in the function comment, since they will be shown as an example in the go docs.

petemoore · 10y ago
Structured data for AI agents

Repository: fatih/camelcase. Description: Split a camelcase word into a slice of words in Go Stars: 183, Forks: 25. Primary language: Go. Languages: Go (100%). License: MIT. Homepage: http://godoc.org/github.com/fatih/camelcase Latest release: v1.0.0 (7y ago). Open PRs: 1, open issues: 0. Last activity: 5y ago. Community health: 42%. Top contributors: fatih, petemoore, dvrkps.

·@ofershap

Replace github.com with gitshow.dev