Reference
Reference
Settings, commands, tags and rules, to look things up.
- AI reference: The API of package
ai. See Add AI to your app for a walkthrough, AI for the design, and Configuration for theAI_*settings. - anetos gen reference:
anetos genwrites the typed columns of your models. It is part of theanetosdeveloper tool (moduleanetos.dev/anetos/cli). See Generate typed columns for a walkthrough. - anetos tool and app commands reference: Two command lines: the
anetosdeveloper tool (moduleanetos.dev/anetos/cli), which creates projects and writes code, and your application’s binary, which runs the app and its commands. See Commands and Getting started for walkthroughs. - Authentication reference: Packages
auth,auth/password,auth/socialandauth/rbac. How-to: Authentication, Authorization, Roles and permissions. Settings: configuration reference. - Configuration reference: Read by
anetos.Newintoanetos.AppConfig. - Formats in catalogs: The
formatandrelativesections of a catalog, whichi18n.Date,Time,DateTime,Format,Currency,Ago,DurationandLanguageNameuse, and the date pattern fields. The framework’s English values are ini18n/locales/en.yaml; a language’s come fromanetos lang:add(Numbers, dates and languages). A key a locale lacks comes from its parents, then English (the app’sencatalogs, then the framework’s), never from a fallback locale in another language. - Migrations reference: The schema builder, the migration runner and the commands in package
anetos.dev/anetos/db/migrate. See Migrations and Seed the database for walkthroughs. - Models reference: How the db package maps a struct to a table. See Define models and save data for a walkthrough.
- Query builder reference: Everything available on
db.Q[T], the query started bydb.Query[T](ctx). See Query data for a walkthrough. - Request binding reference: Rules used by
web.Hto fill a handler’s input struct. - Testing reference: The APIs of packages
anetostestanddb/factory, and the hooks they use. See Test your app for a walkthrough. - Validation rules reference: Rules for the
validatestruct tag, used byvalidate.Structandweb.H. See the validation guide for how to use them. - Views, sessions and forms reference: The APIs of packages
view,sessionandencryption, and the HTML helpers of packageweb. See Render HTML with templ, Sessions and flash messages and Handle HTML forms for walkthroughs.