genmeta

command
v1.68.2 Latest Latest
Warning

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

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

Documentation

Overview

genmeta generates table and column name constants from GORM model structs. Everything is derived from the models.go AST: struct names, field names, and struct tags. 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