mirror of
https://github.com/go-home-admin/toolset.git
synced 2025-12-24 13:37:52 +08:00
add: 使用原生 ast 采集生产 bean
This commit is contained in:
@@ -268,7 +268,10 @@ func (d GoDoc) GetAlias() string {
|
||||
|
||||
// IsPointer 普通指针
|
||||
func (receiver GoTypeAttr) IsPointer() bool {
|
||||
return receiver.TypeName[0:1] == "*"
|
||||
if len(receiver.TypeName) >= 1 {
|
||||
return receiver.TypeName[0:1] == "*"
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (receiver GoTypeAttr) HasTag(name string) bool {
|
||||
|
||||
Reference in New Issue
Block a user