examples/

directory
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: Apache-2.0

Directories

Path Synopsis
authmw demonstrates a production-ish middleware stack:
authmw demonstrates a production-ish middleware stack:
graceful demonstrates signal-driven single-app graceful shutdown.
graceful demonstrates signal-driven single-app graceful shutdown.
hello demonstrates the smallest gogo~ server: one sync route and one async route, plus a static reply served entirely from C++.
hello demonstrates the smallest gogo~ server: one sync route and one async route, plus a static reply served entirely from C++.
httpadapter demonstrates using stdlib net/http handlers inside gogo.
httpadapter demonstrates using stdlib net/http handlers inside gogo.
restapi demonstrates a tiny in-memory REST API with GET/POST/JSON + route params + query strings.
restapi demonstrates a tiny in-memory REST API with GET/POST/JSON + route params + query strings.
sse demonstrates the simplest SSE pattern in gogo: register an async route, install Server-Sent Events via res.SSE, and emit events on a timer with a keepalive ping every few seconds.
sse demonstrates the simplest SSE pattern in gogo: register an async route, install Server-Sent Events via res.SSE, and emit events on a timer with a keepalive ping every few seconds.
upload demonstrates POST body collection with a max-body limit.
upload demonstrates POST body collection with a max-body limit.
websocket demonstrates a browser-friendly WebSocket route:
websocket demonstrates a browser-friendly WebSocket route:

Jump to

Keyboard shortcuts

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