package
Version:
v0.0.0-...-3c20124
Opens a new window with list of versions in this module.
Published: Apr 28, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package safetoken provides wrappers around methods in go/token, that return
errors rather than panicking.
InRange reports whether the given position is in the given token.File.
Offset returns tok.Offset(pos), but first checks that the pos is in range
for the given file.
Pos returns tok.Pos(offset), but first checks that the offset is valid for
the given file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.