Skip to content
Snapshot of the v0.2 release. Fixes and additions since then are not in it. Current documentation →

v0.5.0

Released 22 August 2026.

Pre-alpha. Minor releases may contain breaking changes before v1.0.

Install

go install github.com/caspel26/goninja/cmd/goninja@v0.5.0
go get github.com/caspel26/goninja@v0.5.0

Requires Go 1.25 or newer.

Added

Declare auth beside each action

Action.Auth lets a custom action state its access decision where the action is declared. Config.StrictAuth turns missing decisions into a startup error, including for CRUD routes; RouteAuth{Public: true} remains an explicit public decision. This makes an omitted policy visible before the API serves traffic.

Attach actions at resource construction

Generated New<Model>Resource constructors now accept options without breaking existing calls. goninja.Actions provides a compact way to attach an action builder while constructing the resource instead of requiring a separate SetActions call.

Fixed

Filter time.Time with RFC 3339

A filter-tagged time.Time field now generates a proper RFC 3339 parser and imports time when needed. Previously it generated an invalid integer-style conversion and failed to compile.

Links