go-packages-driver-wasm

module
v0.0.0-...-5bd881e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2026 License: MIT

README

Go Packages Driver

This repo contains an alternative Go packages driver for gopls WebAssembly port.

Goal is to provide a portable driver that can work in WASM and browser environments.

Current status

Project is at early stage of development. Work in progress.

Resolver support status:

  • Stdlib
  • GOMODCACHE
  • replace in go.mod
  • vendor/ directory
  • go.work monorepos

Differences

Classic Go packages uses command-line arguments to pass query patterns and process enviromnent variables.
As WebAssembly doesn't support spawning external processes, this driver uses a custom RPC extension to provide that context in a query.

See: the DriverRequestEnvelope type.

References

Directories

Path Synopsis
cmd
internal
cmd
driver
Package driver implements package driver business logic.
Package driver implements package driver business logic.
fakenet
Package fakenet is copied from "golang.org/x/tools/internal/fakenet".
Package fakenet is copied from "golang.org/x/tools/internal/fakenet".
jsonrpc
Package jsonrpc provides primitives to serve JSON-RPC requests.
Package jsonrpc provides primitives to serve JSON-RPC requests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL