Skip to content

Commit

Permalink
Merge pull request #10 from lukasmacko/master
Browse files Browse the repository at this point in the history
New line added after the first generated line
  • Loading branch information
ungerik committed Sep 5, 2017
2 parents 19795ed + ee9203f commit bfeb2a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgreflect.go
Expand Up @@ -87,7 +87,7 @@ func parseDir(dir string) {
for _, pkg := range pkgs {
var buf bytes.Buffer

fmt.Fprintln(&buf, "// Code generated by github.com/ungerik/pkgreflect DO NOT EDIT.")
fmt.Fprintln(&buf, "// Code generated by github.com/ungerik/pkgreflect DO NOT EDIT.\n")
fmt.Fprintln(&buf, "package", pkg.Name)
fmt.Fprintln(&buf, "")
fmt.Fprintln(&buf, `import "reflect"`)
Expand Down Expand Up @@ -183,7 +183,7 @@ func filter(info os.FileInfo) bool {
if filepath.Ext(name) != ".go" {
return false
}

if strings.HasSuffix(name, "_test.go") && notests {
return false
}
Expand Down

0 comments on commit bfeb2a9

Please sign in to comment.