toolsgolang.org/x/tools/internal/tokeninternal Index | Files

package tokeninternal

import "golang.org/x/tools/internal/tokeninternal"

package tokeninternal provides access to some internal features of the token package.

Index

Functions

func GetLines

func GetLines(file *token.File) []int

GetLines returns the table of line-start offsets from a token.File.

Source Files

tokeninternal.go

Version
v0.7.0
Published
Mar 7, 2023
Platform
linux/amd64
Imports
3 packages
Last checked
5 hours ago

Tools for package owners.