Skip to content

Commit

Permalink
codegen: fix faulty \n
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Nov 16, 2024
1 parent 514a3e7 commit 7403a7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/codegen/presets.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package main

import "strings"

// Preset is a set of rules iperative to XXX_templates/ json files.
// They are used to manually set some properties of the generator.
type Preset struct {
Expand Down Expand Up @@ -55,5 +57,7 @@ func (p *Preset) MergeCGoPreamble() string {
result += "// " + line + "\n"
}

result = strings.TrimSuffix(result, "\n")

return result
}

0 comments on commit 7403a7c

Please sign in to comment.