Hello Everyone.
I am facing a situation, where I would like to store a slice of string that
is coming from Request Body to be stored under 1 column.
Here is the Request - {"start_location":"source", "routes": ["location1",
"location2", "location3"], "end_location":"destination", "user_id":1}
I want to store ["location1", "location2", "location3"] under 1 column in
PostgreSQL. I am also making use of gorm.
PFA of the Struct and Method where I am trying to Create and at that point
I am getting an error, also attached.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.