fasthttpserver

command
v1.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Command fasthttpserver is a fasthttp server that works with both TinyGo and standard Go. Under TinyGo, the blank import registers the host Netdever so the net package can use the OS TCP stack, and -tags noasm is required because TinyGo cannot link klauspost/compress's zstd assembly.

tinygo build -tags noasm -o server ./examples/fasthttpserver && ./server
go run ./examples/fasthttpserver

Optional environment variables:

ADDR    listen address (default 127.0.0.1:8080; port 0 does not work under
        TinyGo, whose Listener reports the address it was asked for)
STATIC  directory to serve under /static/ (default: route disabled)

Jump to

Keyboard shortcuts

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