fix gocyclo support

This commit is contained in:
谢小军
2020-01-03 10:46:56 +08:00
parent bd9e77d459
commit 41b157d708
5 changed files with 37 additions and 28 deletions

View File

@@ -46,3 +46,11 @@ func getTypeName(name string) string {
panic(fmt.Sprintf("type (%v) not match in any way.maybe need to add on (https://github.com/xxjwxc/gormt/blob/master/data/view/cnf/def.go)", name))
}
func getUninStr(left, middle, right string) string {
re := left
if len(right) > 0 {
re = left + middle + right
}
return re
}