metamodel

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Config         util.ValueMap             `json:"config,omitzero"`
	ConfigFile     jsontext.Value            `json:"-"`
	Enums          enum.Enums                `json:"enums,omitempty"`
	EnumFiles      map[string]jsontext.Value `json:"-"`
	Events         model.Events              `json:"events,omitempty"`
	EventFiles     map[string]jsontext.Value `json:"-"`
	Models         model.Models              `json:"models,omitempty"`
	ModelFiles     map[string]jsontext.Value `json:"-"`
	Groups         model.Groups              `json:"groups,omitempty"`
	GroupsFile     jsontext.Value            `json:"-"`
	Acronyms       []string                  `json:"acronyms,omitempty"`
	ExtraTypes     model.Models              `json:"extraTypes,omitempty"`
	ExtraTypesFile jsontext.Value            `json:"-"`
	Modules        []string                  `json:"-"`
	Database       string                    `json:"-"`
}

func (*Args) ApplyAcronyms

func (a *Args) ApplyAcronyms(acronyms ...string)

func (*Args) Audit

func (a *Args) Audit(m *model.Model) bool

func (*Args) DBRef

func (a *Args) DBRef() string

func (*Args) DatabaseNow

func (a *Args) DatabaseNow() string

func (*Args) Empty

func (a *Args) Empty() bool

func (*Args) HasModule

func (a *Args) HasModule(key string) bool

func (*Args) Validate

func (a *Args) Validate() error

type StringProvider added in v1.8.2

type StringProvider interface {
	PackageName() string
	Camel() string
	CamelLower() string
	CamelPlural() string
	Proper() string
	ProperPlural() string
	Kebab() string
	FirstLetter() string
	PackageWithGroup(prefix string) string
	GroupLen() int
	GroupAndPackage() []string
	ConfigMap() util.ValueMap
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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