package
0.1.7
Repository: https://github.com/polaris1119/tools.git
Documentation: pkg.go.dev

# Functions

NewEdit creates an edit replacing all content between (startLine, startColumn) and (endLine, endColumn) with text.
NewEditor Creates a new Editor.
NewSandbox creates a collection of named temporary resources, with a working directory populated by the txtar-encoded content in srctxt, and a file-based module proxy populated with the txtar-encoded content in proxytxt.
NewWorkdir writes the txtar-encoded file data in txt to dir, and returns a Workir for operating on these files using.
Tempdir creates a new temp directory with the given txtar-encoded files.
No description provided by the author
WriteFileData writes content to the relative path, replacing the special token $SANDBOX_WORKDIR with the relative root given by rel.
WriteProxy creates a new proxy file tree using the txtar-encoded content, and returns its URL.

# Variables

ErrNoMatch is returned if a regexp search fails.
ErrNoMatch is returned if a regexp search fails.

# Structs

No description provided by the author
Client is an adapter that converts an *Editor into an LSP Client.
ClientHooks are called to handle the corresponding client LSP method.
Edit represents a single (contiguous) buffer edit.
Editor is a fake editor client.
EditorConfig configures the editor's LSP session.
FileEvent wraps the protocol.FileEvent so that it can be associated with a workdir-relative path.
Location is the editor friendly equivalent of protocol.Location.
Pos represents a position in a text buffer.
Range corresponds to protocol.Range, but uses the editor friend Pos instead of UTF-16 oriented protocol.Position.
Sandbox holds a collection of temporary resources to use for working with Go code in tests.
SandboxConfig controls the behavior of a test sandbox.
SymbolInformation is an editor friendly version of protocol.SymbolInformation, with location information transformed to byte offsets.
Workdir is a temporary working directory for tests.

# Type aliases

RelativeTo is a helper for operations relative to a given directory.