Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
func Copy(src, dst interface{}) error
Copy Assignment of two different types, from src to dst Notice: src and dst must be pointers.
func GenerateUpdateFields ¶
GenerateUpdateFields generates a map of fields to update based on the provided request object. Notice : This req must be pointers to structs It only includes fields that are not zero values and are exported (i.e., start with an uppercase letter). The field names are converted from camelCase to snake_case for use in the database. example: dataBase : {"name": "John", "age": 30} req : {"Age": 31} return : {"age": 31} gorm ues Updates func will update the age field to 31
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.