about summary refs log tree commit diff stats
path: root/internal
diff options
context:
space:
mode:
authorAlan Pearce2024-04-28 08:53:41 +0200
committerAlan Pearce2024-04-29 08:37:22 +0200
commita021f780a5217ddd2fd762fc9e2befdfbdd28c1a (patch)
tree45d43b3f7d33b0b46cae7d2506aebfcd262c0bf2 /internal
parenteeba38e2eb407dd611929ebf66a6e23de3fda74e (diff)
downloadwebsite-a021f780a5217ddd2fd762fc9e2befdfbdd28c1a.tar.lz
website-a021f780a5217ddd2fd762fc9e2befdfbdd28c1a.tar.zst
website-a021f780a5217ddd2fd762fc9e2befdfbdd28c1a.zip
tweak cspgenerator output
Diffstat (limited to 'internal')
-rw-r--r--internal/config/csp.go3
-rw-r--r--internal/config/cspgenerator.go8
2 files changed, 6 insertions, 5 deletions
diff --git a/internal/config/csp.go b/internal/config/csp.go
index 536d9fc..970663c 100644
--- a/internal/config/csp.go
+++ b/internal/config/csp.go
@@ -1,6 +1,7 @@
-// Code generated  DO NOT EDIT.
 package config
 
+// Code generated  DO NOT EDIT.
+
 import (
 	"github.com/crewjam/csp"
 )
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
 	}