From 3b0c8ac67b067ada4a7abf5e890c66cd0c4da6cd Mon Sep 17 00:00:00 2001 From: "Mr.lee" Date: Tue, 7 Nov 2017 12:10:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E5=90=8D=E6=94=AF=E6=8C=81=E4=B8=AD?= =?UTF-8?q?=E6=A8=AA=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mapper.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mapper.go b/mapper.go index bb72a15..0dc30d9 100644 --- a/mapper.go +++ b/mapper.go @@ -108,6 +108,10 @@ func titleCasedName(name string) string { case chr == '_': upNextChar = true continue + //支持中横线 + case chr == '-': + upNextChar = true + continue } newstr = append(newstr, chr)