all repos — website @ a021f780a5217ddd2fd762fc9e2befdfbdd28c1a

My website

tweak cspgenerator output
Alan Pearce alan@alanpearce.eu
Sun, 28 Apr 2024 08:53:41 +0200
commit

a021f780a5217ddd2fd762fc9e2befdfbdd28c1a

parent

eeba38e2eb407dd611929ebf66a6e23de3fda74e

2 files changed, 6 insertions(+), 5 deletions(-)

jump to
M internal/config/csp.gointernal/config/csp.go
@@ -1,5 +1,6 @@+package config
+
 // Code generated  DO NOT EDIT.
-package config
 
 import (
 	"github.com/crewjam/csp"
M internal/config/cspgenerator.gointernal/config/cspgenerator.go
@@ -19,8 +19,9 @@ return err 	}
 	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 @@ 	_, err = fmt.Fprintln(file, `
 func (c *CSP) String() string {
 	return csp.Header(*c).String()
-}
-	`)
+}`)
 	if err != nil {
 		return err
 	}