simplenames

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package simplenames is a built-in plugin proving that naming is fully hook-driven: `users` instead of `allUsers`, `user(id:)` instead of `userById`, `updateUser` instead of `updateUserById`, and shortened relation names where unambiguous. Ambiguous cases fall back to the verbose default (the builder additionally warns on any residual collision).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func New

func New() *Plugin

func (*Plugin) Inflect

func (p *Plugin) Inflect(kind inflect.Kind, in inflect.Input, next inflect.Next) string

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) Priority

func (p *Plugin) Priority() int

func (*Plugin) TransformCatalog

func (p *Plugin) TransformCatalog(_ context.Context, c *introspect.Catalog) error

TransformCatalog only captures the catalog; it does not modify it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL