Skip to content

Commit

Permalink
Remove unnecessary additional newlines in extract generated interface…
Browse files Browse the repository at this point in the history
… wrappers

A side effect of #1281 is that it added unnecessary additional newlines in generated interface wrappers from the `extract` tool. This PR removes those newlines from the extract tool template and updates the generated code with that change.
  • Loading branch information
kkoreilly authored Jul 17, 2024
1 parent 381e045 commit 77c1ce0
Show file tree
Hide file tree
Showing 186 changed files with 1,076 additions and 3,212 deletions.
4 changes: 2 additions & 2 deletions extract/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ func init() {
if W.WString == nil {
return ""
}
{{end -}}
{{$m.Ret}} W.W{{$m.Name}}{{$m.Arg}}
{{end}}
{{- $m.Ret}} W.W{{$m.Name}}{{$m.Arg -}}
}
{{end}}
{{end}}
Expand Down
12 changes: 3 additions & 9 deletions stdlib/go1_21_compress_flate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions stdlib/go1_21_compress_zlib.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 5 additions & 15 deletions stdlib/go1_21_container_heap.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 4 additions & 12 deletions stdlib/go1_21_context.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 3 additions & 9 deletions stdlib/go1_21_crypto.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 8 additions & 24 deletions stdlib/go1_21_crypto_cipher.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions stdlib/go1_21_crypto_elliptic.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 3 additions & 9 deletions stdlib/go1_21_database_sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 77c1ce0

Please sign in to comment.