[go-nuts] Inserting Array into Postgresql Column

2016-11-04 Thread Kedarnag Mukanahallipatna
Hello Everyone. I am facing an issue when I am trying to insert an array into a column. The following is my request "route": [{"latitude":10.32, "longitude":11.23432}, {"latitude":20.234324, "longitude":30.34543}] I want to store this in 1 column called as Route. This is how my struct looks l

[go-nuts] Slice of String in Postgres

2016-10-27 Thread Kedarnag Mukanahallipatna
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}