79547821

Date: 2025-04-01 06:06:49
Score: 0.5
Natty:
Report link

You need to add the serializer tag to specify the serializer that handles how data is serialized and deserialized to and from the database, such as: serializer:json/gob/unixtime. Since your field is of type JSON, your User field should be defined as:

User *UserInfo `json:"user" gorm:"serializer:json"`
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Colder