mirror of
https://github.com/xxjwxc/public.git
synced 2025-09-26 20:01:19 +08:00
fix bug
This commit is contained in:
@@ -81,7 +81,7 @@ func (a *structAnalys) structFieldInfo(astPkg *ast.Package, sinfo *ast.StructTyp
|
||||
}
|
||||
// 判断是否是导出属性(导出属性才允许)(首字母大写)
|
||||
strArry := []rune(info.Name)
|
||||
if strArry[0] >= 97 && strArry[0] <= 122 { // 首字母小写
|
||||
if len(strArry) > 0 && (strArry[0] >= 97 && strArry[0] <= 122) { // 首字母小写
|
||||
continue
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user