You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated embed.go files get mutated if go fmt is run on them, meaning that they have to be specifically excluded from linting tools which is annoying.
diff after go fmt:
@@ -4,7 +4,8 @@ import "embed"
// Embed compiled OpenAPI specs in Go projects.
+// Versions contains OpenAPI specs for each distinct release version.+//
//go:embed 2022-11-07~experimental/spec.json
//go:embed 2022-11-07~experimental/spec.yaml
-// Versions contains OpenAPI specs for each distinct release version.
var Versions embed.FS
go1.19.1
The text was updated successfully, but these errors were encountered:
The generated embed.go files get mutated if go fmt is run on them, meaning that they have to be specifically excluded from linting tools which is annoying.
diff after
go fmt
:go1.19.1
The text was updated successfully, but these errors were encountered: