From 169b3fdc7eb7162bfc93f2e809dadf560bb9273d Mon Sep 17 00:00:00 2001 From: shenghui0779 Date: Thu, 16 Jan 2025 17:26:05 +0800 Subject: [PATCH] =?UTF-8?q?gg=E6=94=AF=E6=8C=81=E6=B3=9B=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/gg/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gg/main.go b/cmd/gg/main.go index 84cbfde..b24b63a 100644 --- a/cmd/gg/main.go +++ b/cmd/gg/main.go @@ -253,7 +253,7 @@ func buildStruct(info *types.Info, ts *ast.TypeSpec, st *ast.StructType, gt []Ge // 字段类型 fieldType := info.TypeOf(field.Type).String() underlyingType := info.TypeOf(field.Type).Underlying().String() - fmt.Println(field.Names, "[fieldType]", fieldType, "[underlyingType]", underlyingType) + // fmt.Println(field.Names, "[fieldType]", fieldType, "[underlyingType]", underlyingType) if dotIndex := strings.LastIndex(fieldType, "."); dotIndex >= 0 { if pkg := fieldType[:dotIndex]; !filepath.IsAbs(pkg) { imports = append(imports, pkg)