genmeta

command
v1.80.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

genmeta generates table/column name constants and per-table extractable column metadata from GORM model structs. Everything is derived from the models.go AST: struct names, field names, struct tags, and field types. The generator does NOT import the data package -- it reads the source text and applies GORM's NamingStrategy for table/column name conversion.

Usage: go generate ./internal/data/

Jump to

Keyboard shortcuts

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