Skip to content

Commit

Permalink
Add "// +build " to directives in mingo minify function
Browse files Browse the repository at this point in the history
  • Loading branch information
koki-develop committed Mar 7, 2024
1 parent 1716c9b commit 2b65d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/mingo/mingo.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (m *mingo) Minify(filename string, src []byte) (string, error) {

for _, cg := range file.Comments {
for _, c := range cg.List {
dirs := []string{"//go:build ", "//go:generate "}
dirs := []string{"//go:build ", "// +build ", "//go:generate "}
for _, prefix := range dirs {
if strings.HasPrefix(c.Text, prefix) {
fmt.Fprintln(sb, c.Text)
Expand Down

0 comments on commit 2b65d70

Please sign in to comment.