Documentation
¶
Overview ¶
Package r3utils provides shared utility functions used across r3 packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRelationType ¶
IsRelationType returns true if the Go type represents a relation field (slice, map, pointer-to-struct, or struct — except time.Time).
func ResolveElementType ¶
ResolveElementType unwraps slice and pointer types to get the underlying struct type. E.g. []CityTranslation -> CityTranslation, *City -> City.
func ToSnakeCase ¶
ToSnakeCase converts a name (PascalCase, camelCase, etc.) to snake_case. It correctly handles acronyms like "CityID" → "city_id".
func ToSnakeCasePlural ¶
ToSnakeCasePlural converts a name to snake_case and applies naive pluralization.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.