Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 9e24387

Browse files
committed
make generated code formatting consistent across Go versions
1 parent 3c2bb47 commit 9e24387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/autowire/autowire.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ func (g *gen) frame(tags string) []byte {
268268
}
269269
buf.WriteString("// Code generated by Autowire. DO NOT EDIT.\n\n")
270270
buf.WriteString("//go:generate go run github.com/dabbertorres/autowire/cmd/autowire" + tags + "\n\n")
271-
buf.WriteString("//+build !wireinject\n")
272271
buf.WriteString("//go:build !wireinject\n")
272+
buf.WriteString("// +build !wireinject\n\n")
273273
buf.WriteString("package ")
274274
buf.WriteString(g.pkg.Name)
275275
buf.WriteString("\n\n")

0 commit comments

Comments
 (0)