helloworldserver

command
v1.81.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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