structref

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelToSnake

func CamelToSnake(s string) string

CamelToSnake converts CamelCase to snake_case.

func FieldColumnName

func FieldColumnName(f reflect.StructField) string

FieldColumnName returns the column name for a struct field by checking db, neat, gorm, json tags (in that order of priority), then falling back to snake_case of the field name.

The json tag is the lowest-priority source and is parsed per the encoding/json convention: `json:"name,omitempty"` uses the part before the comma; `json:"-"` is treated as "no column name" (skip).

This is the single source of truth for struct→column name resolution, shared by the query builder and the array source helper.

Types

This section is empty.

Jump to

Keyboard shortcuts

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