tweak cspgenerator output
Alan Pearce alan@alanpearce.eu
Sun, 28 Apr 2024 08:53:41 +0200
2 files changed, 6 insertions(+), 5 deletions(-)
M internal/config/csp.go → internal/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.go → internal/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 }