Skip to content

Commit

Permalink
fix: lint error for generated docs.go (#1583)
Browse files Browse the repository at this point in the history
Co-authored-by: wanglonghui7 <[email protected]>
  • Loading branch information
lowang-bh and wanglonghui7 committed May 10, 2023
1 parent 5774b7b commit e749ad5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,7 @@ func (g *Gen) writeGoDoc(packageName string, output io.Writer, swagger *spec.Swa
return err
}

var packageTemplate = `// Code generated by swaggo/swag{{ if .GeneratedTime }} at {{ .Timestamp }}{{ end }}. DO NOT EDIT.
var packageTemplate = `// Package {{.PackageName}} Code generated by swaggo/swag{{ if .GeneratedTime }} at {{ .Timestamp }}{{ end }}. DO NOT EDIT
package {{.PackageName}}
import "github.com/swaggo/swag"
Expand Down

0 comments on commit e749ad5

Please sign in to comment.