add notes to support golint
This commit is contained in:
@@ -76,9 +76,9 @@ func (s *GenStruct) SetStructName(name string) {
|
|||||||
|
|
||||||
// SetNotes set the notes.设置注释
|
// SetNotes set the notes.设置注释
|
||||||
func (s *GenStruct) SetNotes(notes string) {
|
func (s *GenStruct) SetNotes(notes string) {
|
||||||
// if len(notes) > 0 {
|
if len(notes) > 0 {
|
||||||
// notes = s.Name + " " + notes
|
notes = s.Name + " " + notes
|
||||||
// }
|
}
|
||||||
|
|
||||||
a := strings.Split(notes, "\n")
|
a := strings.Split(notes, "\n")
|
||||||
var text []string
|
var text []string
|
||||||
|
|||||||
Reference in New Issue
Block a user