From a021f780a5217ddd2fd762fc9e2befdfbdd28c1a Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 28 Apr 2024 08:53:41 +0200 Subject: tweak cspgenerator output --- internal/config/cspgenerator.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/config/cspgenerator.go') diff --git a/internal/config/cspgenerator.go b/internal/config/cspgenerator.go index 4594d0d..0985b9e 100644 --- a/internal/config/cspgenerator.go +++ b/internal/config/cspgenerator.go @@ -19,8 +19,9 @@ func GenerateCSP() error { } defer file.Close() - _, err = fmt.Fprintf(file, `// Code generated DO NOT EDIT. -package config + _, err = fmt.Fprintf(file, `package config + +// Code generated DO NOT EDIT. import ( "github.com/crewjam/csp" @@ -70,8 +71,7 @@ import ( _, err = fmt.Fprintln(file, ` func (c *CSP) String() string { return csp.Header(*c).String() -} - `) +}`) if err != nil { return err } -- cgit 1.4.1