From b3d2758605e74cd86e58904326e53fc68a5980f4 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sat, 5 Oct 2024 00:46:41 +0200 Subject: [PATCH 1/2] fix: follow Go convention about generated comment --- cmd/zz_gen_cmd_dnshelp.go | 3 +-- internal/dnsdocs/dns.go.tmpl | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/zz_gen_cmd_dnshelp.go b/cmd/zz_gen_cmd_dnshelp.go index a4053851e5..537e094def 100644 --- a/cmd/zz_gen_cmd_dnshelp.go +++ b/cmd/zz_gen_cmd_dnshelp.go @@ -1,7 +1,6 @@ package cmd -// CODE GENERATED AUTOMATICALLY -// THIS FILE MUST NOT BE EDITED BY HAND +// Code generated by 'make generate-dns'; DO NOT EDIT. import ( "fmt" diff --git a/internal/dnsdocs/dns.go.tmpl b/internal/dnsdocs/dns.go.tmpl index 6ccadb4568..81499a5b77 100644 --- a/internal/dnsdocs/dns.go.tmpl +++ b/internal/dnsdocs/dns.go.tmpl @@ -1,7 +1,6 @@ package cmd -// CODE GENERATED AUTOMATICALLY -// THIS FILE MUST NOT BE EDITED BY HAND +// Code generated by 'make generate-dns'; DO NOT EDIT. import ( "fmt" From 1db9875b9459871ec30be75703bfcd25117fa142 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sat, 5 Oct 2024 14:10:44 +0200 Subject: [PATCH 2/2] review: move comment --- cmd/zz_gen_cmd_dnshelp.go | 4 ++-- internal/dnsdocs/dns.go.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/zz_gen_cmd_dnshelp.go b/cmd/zz_gen_cmd_dnshelp.go index 537e094def..06fe0a489c 100644 --- a/cmd/zz_gen_cmd_dnshelp.go +++ b/cmd/zz_gen_cmd_dnshelp.go @@ -1,7 +1,7 @@ -package cmd - // Code generated by 'make generate-dns'; DO NOT EDIT. +package cmd + import ( "fmt" "io" diff --git a/internal/dnsdocs/dns.go.tmpl b/internal/dnsdocs/dns.go.tmpl index 81499a5b77..e8b3362548 100644 --- a/internal/dnsdocs/dns.go.tmpl +++ b/internal/dnsdocs/dns.go.tmpl @@ -1,7 +1,7 @@ -package cmd - // Code generated by 'make generate-dns'; DO NOT EDIT. +package cmd + import ( "fmt" "io"