Quick Start
Upgrade Guide
Upgrade an existing GoLazy application from v0.1.15 to v0.1.16.
Upgrade from v0.1.15
GoLazy v0.1.16 does not require source rewrites for applications that already
run on v0.1.15. The release adds framework cache support, deferred template
values, route-link helpers, richer telemetry, and the DevTools-style lazydev
panel. Use lazy upgrade to update the golazy.dev module requirement and run
the normal follow-up checks.
Install or update the matching CLI:
curl -fsSL https://golazy.dev/install.sh | sh
lazy --version
Run the application migration:
lazy upgrade --target v0.1.16
lazy upgrade applies the framework module update with go get from the
release's go.mod manifest, then runs the standard follow-up checks. It does
not edit application source for the v0.1.15 -> v0.1.16 step.
If you are upgrading from v0.1.14 or earlier, first run the earlier
automated migrations or read the previous versioned upgrade guides. The
v0.1.14 -> v0.1.15 step still migrates dependency initializers and SEO
defaults before the v0.1.16 module update runs.
Review New Features
Caching
lazyapp.App now owns a default cache and exposes it through
golazy.dev/lazycache. Controller views, partials, and Turbo frame bodies can
use the cache helpers, and lazydev exposes cache state, keys, and On/Off
actions. Read Caching.
Deferred Template Values
Controllers can use SetLater and SetWhenNeeded when a template value is
expensive or only needed in some render paths. Templates resolve the value with
.Value. Read
Template Data And Helpers.
Route Link Helpers
Templates can use link_to, path_for, attr, data, and unless_current
to render escaped links to named routes without handwritten anchor tags. Read
Template Data And Helpers.
Telemetry
GoLazy can enable OpenTelemetry-compatible tracing, logging, request IDs, and
in-memory metrics from meaningful OTEL_* environment variables. Set
OTEL_SDK_DISABLED=true to disable telemetry explicitly. Prometheus metrics
are served from the control plane when OTEL_METRICS_EXPORTER=prometheus and
CONTROL_PLANE_ADDR are configured. Read
Telemetry.
lazydev Panel
The lazy development loop now embeds a DevTools-style panel at /_golazy/
with Requests, Console, App Logs, Traces, Routes, Assets, and Actions tabs. It
also forwards request IDs and trace context to the child app so panel artifacts
line up with framework telemetry. Read lazydev and
Run With lazy.