-
Create a PostgreSQL database, then run the two
CREATE
statements inquery.sql
against it. -
Run this code from the root directory with:
DATABASE_URL=<your_db_conn> go run .
- Results in:
panic: reflect.Value.Convert: value of type *[]db.Fruit cannot be converted to type *[]string