From d1d1fcb918f49f658e58683e73adb6506d52dc0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E5=B0=8F=E5=86=9B?= <346944475@qq.com> Date: Thu, 17 Oct 2019 21:13:19 +0800 Subject: [PATCH] add notes to support golint --- data/view/genstruct/common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/view/genstruct/common.go b/data/view/genstruct/common.go index 0adfca6..24230ff 100644 --- a/data/view/genstruct/common.go +++ b/data/view/genstruct/common.go @@ -76,9 +76,9 @@ func (s *GenStruct) SetStructName(name string) { // SetNotes set the notes.设置注释 func (s *GenStruct) SetNotes(notes string) { - // if len(notes) > 0 { - // notes = s.Name + " " + notes - // } + if len(notes) > 0 { + notes = s.Name + " " + notes + } a := strings.Split(notes, "\n") var text []string