From 0213f4bd1fad8a0005060a3b716b92d94ec97be9 Mon Sep 17 00:00:00 2001 From: windvalley Date: Sat, 6 Feb 2021 22:08:22 +0800 Subject: [PATCH] Fix the issue that using 'goreportcard-cli -v' will output errors (swaggo#872) --- gen/gen.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 (