langmod

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package langmod locates the language repos funcd pins as Go modules (ADR-0141): a pinned module's root, for the committed example builds, and the embedded Node shims written to a temp dir, for the tests that exec them.

Index

Constants

View Source
const (
	TypeScript = "github.com/pyvvo/funcd-typescript"
	Python     = "github.com/pyvvo/funcd-python"
)

The language modules funcd pins in go.mod.

Variables

This section is empty.

Functions

func Dir

func Dir(t testing.TB, mod string) string

Dir returns module mod's root as the go command resolves it: the pinned module-cache dir, or a go.work override. The module cache is read-only, so callers never write under it.

func NodeShim

func NodeShim(t testing.TB) string

NodeShim writes the embedded single-tenant Node shim into t.TempDir() and returns its path.

func PoolShim

func PoolShim(t testing.TB) string

PoolShim writes the embedded worker_threads pool shim into t.TempDir() and returns its path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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