Start Here

What Changed

High-level changes covered by the latest GoLazy guides.

By Guillermo Alvarez - Published - Updated

Latest overview

The v0.1.6 guides focus on making application startup shorter while keeping the request path predictable:

  • lazyapp.App.ListenAndServe reads ADDR, then PORT, then falls back to :3000, and installs the application context as the server base context.
  • lazyapp.MustSub keeps embedded public and views setup compact.
  • Cookie-backed sessions are available through lazysession and can be enabled from lazyapp.Config.Sessions. Default names derived from module paths are normalized into valid cookie names.
  • Controller constructors run when routes are drawn, and requests use pooled controller instances copied from route prototypes.
  • BeforeAction gives base controllers a request-time hook for shared setup.
  • Views are cached after helpers are registered, reducing render-path template parsing work.
  • The website now has a dedicated Thanks page for the projects and industry choices that shaped GoLazy.

Read Controllers for the pooled controller lifecycle. Read Views and Layouts for helper registration and template caching. Read Embedding and Deployment for ListenAndServe and server context setup.