mirror of
https://github.com/golang/go
synced 2024-11-19 03:14:42 -07:00
7d206e10da
I assumed that f.Pos() would be the first byte of the file, but it's the position of the package declaration. This kills the file. Just use 0. Fixes golang/go#35458. Change-Id: Ic77c93344c71435ef8e5624c2f2defb619139a15 Reviewed-on: https://go-review.googlesource.com/c/tools/+/206145 Run-TryBot: Heschi Kreinick <heschi@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
add_import.go.golden | ||
add_import.go.in | ||
good_imports.go.golden | ||
good_imports.go.in | ||
issue35458.go.golden | ||
issue35458.go.in | ||
multiple_blocks.go.golden | ||
multiple_blocks.go.in | ||
needs_imports.go.golden | ||
needs_imports.go.in | ||
remove_import.go.golden | ||
remove_import.go.in | ||
remove_imports.go.golden | ||
remove_imports.go.in |