go/token: add (*File).End method

Also, use it in a number of places.

+ test, api, relnote

Fixes #75849

Change-Id: I44acf5b8190b964fd3975009aa407d7c82cee19b
Reviewed-on: https://go-review.googlesource.com/c/go/+/720061
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
This commit is contained in:
Alan Donovan 2025-11-12 18:17:35 -05:00
parent 65c09eafdf
commit 1297fae708
8 changed files with 22 additions and 7 deletions

View file

@ -0,0 +1 @@
The new [File.End] convenience method returns the file's end position.