langmod

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package langmod locates the repos funcd pins as Go modules (ADR-0141): a pinned module's root, for the committed example builds and the example Apps of funcd-functions, and the embedded Node and Python 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"
	Functions  = functions.Module
)

The modules funcd pins in go.mod: the two language repos and the example repo.

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.

func PythonShim added in v0.2.2

func PythonShim(t testing.TB) (shimEntry, poolEntry string)

PythonShim extracts the embedded Python shim package into t.TempDir() and returns its entry scripts: the solo shim and the subinterpreter pool host (Python 3.14 or later).

Types

This section is empty.

Jump to

Keyboard shortcuts

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