package
0.1.1
Repository: https://github.com/dwahler/go-tools.git
Documentation: pkg.go.dev

# Functions

NewMapper creates a new Mapper for the given content.
NewMapper creates a new TokenMapper for the given content, using the provided file to compute offsets.
UTF16Len returns the UTF-16 length of the UTF-8 encoded content, were it to be re-encoded as UTF-16.

# Structs

Mapper maps utf-8 byte offsets to LSP positions for a single file.
TokenMapper maps token.Pos to LSP positions for a single file.