add notes to support golint

This commit is contained in:
谢小军
2019-10-17 21:13:19 +08:00
parent 16b24a1355
commit d1d1fcb918

View File

@@ -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