serve

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Command serve loads every *.manifest.json in the examples directory and serves the polyglot services on :8080 — Python (gpython) and TypeScript (goja) handlers running as goroutines inside one static Go binary.

go run ./examples/serve
curl -s localhost:8080/v1/hello-py/greet -d '{"name":"ada"}'
curl -s localhost:8080/v1/hello-ts/greet -d '{"name":"ada"}'

Jump to

Keyboard shortcuts

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