Versions in this module Expand all Collapse all v0 v0.5.0 Nov 18, 2026 Changes in this version + const DefaultSignInMethodsTable + const SuperAdministratorsChecked + const SuperAdministratorsNone + const WorkspacesAccounts + const WorkspacesAny + const WorkspacesListed + const WorkspacesOne + func SpreadIntoCall(rel string, src []byte, funcName, callee string, fixed int, slice string) ([]byte, error) type App + SecretHolders []SecretHolders + SecretRetirements []SecretRetirement type Auth + SignInMethodsTable string + SuperAdministrators SuperAdministrators type EnvTag + Versioned bool + func (t EnvTag) VersionedName(version int) string type Method + GoogleAccounts bool + SeveralDomains bool + Workspaces string + type SecretHolders struct + File string + Package string + Stored bool + type SecretRetirement struct + File string + Line int + Packages []string + Unread bool + type SuperAdministrators struct + EngineLine int + Form string + Packages []string + RolesPackage string v0.4.0 Nov 15, 2026 v0.3.0 Nov 14, 2026 Changes in this version type Generator + func (g *Generator) IdentityDir() string v0.2.0 Nov 13, 2026 Changes in this version + const MethodOIDC v0.1.0 Nov 10, 2026 Changes in this version + const AuthorityApplication + const AuthorityDirectory + const DefaultAttemptsTable + const DefaultAuthEventsTable + const DefaultDeviceCodesTable + const DefaultFactorCodesTable + const DefaultIdentitiesTable + const DefaultImpersonationTable + const DefaultMailLinksTable + const DefaultOutletName + const DefaultPendingTable + const DefaultSessionTable + const DefaultTokensTable + const DefaultTrustedDevicesTable + const DefaultUserTable + const FeaturesFile + const FileStoreVariable + const MethodAzure + const MethodGoogle + const MethodPassword + const MethodPersona + const MethodWorkOS + const PasswordRegistration + const ProvesGrantFunc + const RolesFileName + const TenantCreationAdministrator + const TenantCreationArg + const TenantCreationBoth + const TenantCreationSelfService + const TenantsAny + const TenantsListed + const TenantsOne + const TenantsPersonal + const ThisReleaseIdent + var ErrNoAnchor = errors.New("no anchor for the edit") + var FeatureNameRE = regexp.MustCompile(`^[a-z][a-z0-9_]{0,63}$`) + func AddAuthMethod(rel string, src []byte, importPath, name, declaration string) (out []byte, edited int, err error) + func AddFeatureConstant(rel string, src []byte, pkg, constant, name string) ([]byte, error) + func AddImport(rel string, src []byte, importPath string) ([]byte, error) + func AddInterfaceLine(rel string, src []byte, typeName, line string) ([]byte, error) + func AddLiteralElement(rel string, src []byte, funcName, typeName, element string) ([]byte, error) + func AddLiteralElementOfType(rel string, src []byte, typeName, element string) ([]byte, error) + func AddMethodLiteralElement(rel string, src []byte, recvType, funcName, typeName, element string) ([]byte, error) + func AddNamedImport(rel string, src []byte, name, importPath string) ([]byte, error) + func AddStatementsBeforeCall(rel string, src []byte, typeName, funcName, callee, statements string) ([]byte, error) + func AddStatementsBeforeConstruction(rel string, src []byte, funcName, typeName, statements string) ([]byte, error) + func AddStructField(rel string, src []byte, typeName, field string) ([]byte, error) + func AppendCallArgument(rel string, src []byte, funcName, callee, argument string) ([]byte, error) + func AuthPackageName(file string) string + func BindOutletAuth(rel string, src []byte, outlet, declaration string) (out []byte, replaced bool, err error) + func ChainMethodFlag(rel string, src []byte, importPath, name, flag string) (out []byte, edited int, err error) + func CopyMethod(rel string, src []byte, recvType, name string, rename func(text string) string) ([]byte, error) + func DeclaresType(rel string, src []byte, name string) (bool, error) + func ExtendCall(rel string, src []byte, funcName, callee, arguments string) ([]byte, error) + func ExtendMethodCall(rel string, src []byte, typeName, funcName, callee, arguments string) ([]byte, error) + func FeatureConstant(name string) string + func HasCall(rel string, src []byte, typeName, funcName, callee string) (bool, error) + func HasImport(rel string, src []byte, importPath string) (bool, error) + func ImportName(rel string, src []byte, importPath string) (string, error) + func InsertOptions(rel string, src []byte, after string, options []string) ([]byte, error) + func MethodConstructor(kind string) string + func MethodDeclaration(kind, name, label string) string + func MethodNames(rel string, src []byte, typeName string) ([]string, error) + func MoveDefaultOutlet(rel string, src []byte, prefix, mount string) ([]byte, error) + func OptionText(rel string, src []byte, name, first string) (string, error) + func PackageName(rel string, src []byte) (string, error) + func RemoveFeatureAnnotations(rel string, src []byte, constant string) (out []byte, removed int, err error) + func RemoveFeatureConstant(rel string, src []byte, constant string) (out []byte, empty bool, err error) + func RemoveOptions(rel string, src []byte, name, first string) (out []byte, removed int, err error) + func ReplaceNilArgument(rel string, src []byte, funcName, callee, replacement string) ([]byte, error) + func RoleWriters(rel string, src []byte, authName string) []int + func StructFieldOfType(rel string, src []byte, structName, importPath, typeName string) (string, error) + func StructFieldOfValueType(rel string, src []byte, structName, importPath, typeName string) (string, error) + func WrapReturn(rel string, src []byte, funcName, typeName, varName, call, wrapErr string) ([]byte, error) + type AngularProject struct + AssetDirs []string + BaseHref string + Defines map[string]string + DevPort int + Index string + Name string + ProjectType string + ProxyConfig string + Root string + ServePath string + ServiceWorker string + SourceRoot string + TestBuilder string + TestTsConfig string + func ProjectFor(projects []AngularProject, rel string) (AngularProject, bool) + type App struct + AuthPackages []AuthPackage + Auths []Auth + CI *CIDirective + DefaultRoles []DefaultRoles + DomainResources []DomainResource + EmulatorHarnesses []EmulatorRef + EmulatorImages []EmulatorRef + Engines []Engine + EnvTags []EnvTag + EnvTemplate string + FeatureGates []FeatureGate + Features []FeatureFlag + FirestoreEmulatorImages []EmulatorRef + Generators []*Generator + GoGenerate []Directive + GoMod *modfile.File + GrantProofs []GrantProof + MainPackages []string + OutletMembers []OutletMember + PolicyChecks []PolicyCheck + RoleValidations []RoleValidation + Root string + RosterConstructions []RosterConstruction + TenantDirectories []DirectoryRecord + TenantRecords []TenantRecord + UnattachedMethods []Method + WebApps []WebApp + func Discover(dir string) (*App, error) + func (a *App) Abs(rel string) string + func (a *App) FeatureByName(name string) []FeatureFlag + func (a *App) FeatureUses() ([]FeatureUse, error) + func (a *App) GatesOf(constant string) []FeatureGate + func (a *App) GoFiles() []string + func (a *App) ModuleDir(importPath string) (string, bool) + func (a *App) Profile() Profile + func (a *App) ProgramDir(g *Generator) string + func (a *App) ReadAngular(webDir string) ([]AngularProject, error) + func (a *App) Rel(abs string) string + func (a *App) RunsGenerator(g *Generator) (Directive, bool) + func (a *App) SharedGenerators() []*Generator + func (a *App) SiteGenerators() []*Generator + func (a *App) WebAppFor(rel string) (WebApp, bool) + type Arg struct + Bool bool + Call *Call + Int int64 + Kind ArgKind + List []string + Map map[string]string + Method *AuthMethodArg + Str string + Text string + type ArgKind int + const ArgAuthMethod + const ArgBool + const ArgBoolMap + const ArgCall + const ArgComposite + const ArgConstructor + const ArgIdent + const ArgInt + const ArgOther + const ArgString + const ArgStringList + const ArgStringMap + type Auth struct + AttemptsTable string + AuthEvents bool + AuthEventsTable string + CookieName string + DeviceCodesTable string + ExtraTables []string + FactorCodesTable string + File string + IdentitiesTable string + Impersonation bool + ImpersonationTable string + Line int + Mail bool + MailLinksTable string + Methods []Method + OptionsForwarded bool + PendingTable string + SessionTable string + TokensTable string + TrustedDeviceCookieName string + TrustedDevicesTable string + UserTable string + Var string + XSRFCookieName string + type AuthMethodArg struct + InvitedUsers bool + Kind string + Label string + Name string + OpenSignUp bool + SyncsRoles bool + UsernameIsEmail bool + func (m *AuthMethodArg) Declaration() string + type AuthPackage struct + Dir string + Name string + Path string + Refs []AuthRef + func (p *AuthPackage) References(name string, excluding func(file string) bool) []string + type AuthRef struct + File string + Names []string + type CIDirective struct + DefaultBranch string + File string + LargeRunner []string + Line int + TestCache *bool + type Call struct + Args []Arg + Name string + Pos string + func (c Call) String() string + type DefaultRoles struct + File string + Line int + RolesPackage string + type Directive struct + Command string + File string + Line int + type DirectoryRecord struct + DefaultSeatField string + DefaultSeatName string + File string + Line int + Name string + type DomainResource struct + File string + Line int + Name string + type EmulatorRef struct + File string + Line int + Version string + type Engine struct + ChangeSignal bool + File string + Line int + OptionsForwarded bool + Package string + type EnvTag struct + File string + Generated bool + HasDefault bool + Line int + Name string + Origin string + Required bool + Secret bool + type FeatureFlag struct + Constant string + Description string + File string + Line int + Name string + Package string + type FeatureGate struct + Constant string + File string + Line int + Target string + type FeatureUse struct + Constant string + File string + Line int + Test bool + type Generator struct + File string + LocalPackages []string + MigrationSources []string + Options []Call + Problems []Problem + ReadsWarnings bool + ResourcePackageDir string + func ParseGenerator(rel string, src []byte) (*Generator, error) + func (g *Generator) EmulatorVersion() string + func (g *Generator) HandlerTestsDir() string + func (g *Generator) HandlersDir() string + func (g *Generator) LegacyAuths() []LegacyAuth + func (g *Generator) MountedRoutes() []MountedRoutes + func (g *Generator) Option(name string) (Call, bool) + func (g *Generator) OptionsNamed(name string) []Call + func (g *Generator) RPCDir() string + func (g *Generator) RequestLog() string + func (g *Generator) RoutesDir() string + func (g *Generator) TypesDirs() []string + func (g *Generator) TypescriptTargets() []TSTarget + type GrantProof struct + Condition string + File string + Line int + Permission string + Problem string + Resource string + Role string + RolesPackage string + type Layout int + const LayoutFlat + const LayoutSites + func (l Layout) String() string + type LegacyAuth struct + Package string + Pos string + Text string + type Method struct + AuthVar string + Authority string + File string + Kind string + Line int + Name string + OpenSignUp bool + PersonalAccounts bool + Tenants string + UsernameIsEmail bool + func (m *Method) Directory() bool + type MountedRoutes struct + Pos string + Prefix string + RequestLog string + Traces string + type Outlet struct + APIKey bool + Auth *OutletAuth + Name string + OldestAnswered string + Pos string + Prefix string + Programs []Program + RequestLog string + ServesSessions bool + Tokens string + Traces string + WebApp string + func (o *Outlet) Machine() bool + type OutletAuth struct + ImportPath string + Methods []AuthMethodArg + func (a OutletAuth) Directory() bool + func (a OutletAuth) Method(name string) *AuthMethodArg + type OutletMember struct + File string + Line int + Name string + Outlets []string + type PolicyCheck struct + File string + Line int + type Problem struct + Message string + Pos string + func (p Problem) String() string + type Profile struct + FileStore *EnvTag + Layout Layout + Shared []*Generator + Sites []Site + func (p Profile) OutletNames() []string + func (p Profile) SiteNames() []string + type Program struct + Dir string + Name string + Platforms []string + Pos string + type RoleValidation struct + File string + Line int + RolesPackages []string + type RosterConstruction struct + Constructor string + File string + Holder string + Line int + Package string + Signals bool + type Site struct + ConcealedDomains bool + Default Outlet + Dir string + Directories *DirectoryRecord + GeneratedRouter bool + Generator *Generator + Name string + Outlets []Outlet + TenantRecord *TenantRecord + func (s *Site) AllOutlets() []Outlet + func (s *Site) Tenanted() bool + type TSTarget struct + Dir string + Outlet string + Pos string + type TenantRecord struct + Creation string + File string + Line int + Name string + func (r *TenantRecord) SelfService() bool + type WebApp struct + Dir string