Skip to content
This repository was archived by the owner on Jun 19, 2019. It is now read-only.

列名支持中横线 #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ func titleCasedName(name string) string {
case chr == '_':
upNextChar = true
continue
//支持中横线
case chr == '-':
upNextChar = true
continue
}

newstr = append(newstr, chr)
Expand Down