From c5817c27ec125409c069052fdd171023c353501c Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Sun, 12 Mar 2023 12:31:09 +0200 Subject: [PATCH] codegen: fix generated header comment (#25) --- codegen/main.go | 4 ++-- wrap_generated_gteq_1.8.go | 2 +- wrap_generated_gteq_1.8_test.go | 2 +- wrap_generated_lt_1.8.go | 2 +- wrap_generated_lt_1.8_test.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/codegen/main.go b/codegen/main.go index 5734c00..60c6212 100644 --- a/codegen/main.go +++ b/codegen/main.go @@ -24,7 +24,7 @@ func (b *Build) MustBuild() { func (b *Build) writeHeader(g *Generator) { g.Printf(` // +build %s -// Code generated by "httpsnoop/codegen"; DO NOT EDIT +// Code generated by "httpsnoop/codegen"; DO NOT EDIT. package httpsnoop @@ -78,7 +78,7 @@ type Hooks struct { g.Printf(` // Wrap returns a wrapped version of w that provides the exact same interface // as w. Specifically if w implements any combination of: -// +// %s // // The wrapped version will implement the exact same combination. If no hooks diff --git a/wrap_generated_gteq_1.8.go b/wrap_generated_gteq_1.8.go index 31cbdfb..101cedd 100644 --- a/wrap_generated_gteq_1.8.go +++ b/wrap_generated_gteq_1.8.go @@ -1,5 +1,5 @@ // +build go1.8 -// Code generated by "httpsnoop/codegen"; DO NOT EDIT +// Code generated by "httpsnoop/codegen"; DO NOT EDIT. package httpsnoop diff --git a/wrap_generated_gteq_1.8_test.go b/wrap_generated_gteq_1.8_test.go index a789934..7319f85 100644 --- a/wrap_generated_gteq_1.8_test.go +++ b/wrap_generated_gteq_1.8_test.go @@ -1,5 +1,5 @@ // +build go1.8 -// Code generated by "httpsnoop/codegen"; DO NOT EDIT +// Code generated by "httpsnoop/codegen"; DO NOT EDIT. package httpsnoop diff --git a/wrap_generated_lt_1.8.go b/wrap_generated_lt_1.8.go index ab99c07..e0951df 100644 --- a/wrap_generated_lt_1.8.go +++ b/wrap_generated_lt_1.8.go @@ -1,5 +1,5 @@ // +build !go1.8 -// Code generated by "httpsnoop/codegen"; DO NOT EDIT +// Code generated by "httpsnoop/codegen"; DO NOT EDIT. package httpsnoop diff --git a/wrap_generated_lt_1.8_test.go b/wrap_generated_lt_1.8_test.go index 3ebda9e..49c8a45 100644 --- a/wrap_generated_lt_1.8_test.go +++ b/wrap_generated_lt_1.8_test.go @@ -1,5 +1,5 @@ // +build !go1.8 -// Code generated by "httpsnoop/codegen"; DO NOT EDIT +// Code generated by "httpsnoop/codegen"; DO NOT EDIT. package httpsnoop