diff --git a/gen/gen.go b/gen/gen.go index 291517485..7472dd5e3 100644 --- a/gen/gen.go +++ b/gen/gen.go @@ -249,10 +249,9 @@ func (g *Gen) writeGoDoc(packageName string, output io.Writer, swagger *spec.Swa return err } -var packageTemplate = `// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT +var packageTemplate = `// Package {{.PackageName}} GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // This file was generated by swaggo/swag{{ if .GeneratedTime }} at // {{ .Timestamp }}{{ end }} - package {{.PackageName}} import (