helloworldserver

command
v1.74.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 6 Imported by: 0

README

HelloWorld server example

  • Displays various request info with 0 allocs/op.
  • Avoids fmt and zero-value structs in the request path. See issue #1764.
  • Sets response headers and cookies.
  • Supports transparent compression. Note that compression itself allocates - the 0 allocs/op claim covers the uncompressed path.

How to build

make

How to run

./helloworldserver -addr=tcp.addr.to.listen:to

How to verify the zero-allocation claim

go test -run TestZeroAllocation -v .

Documentation

Overview

Command helloworldserver displays various request info with 0 allocs/op.

Jump to

Keyboard shortcuts

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