执行查询 使用Query执行查询: rows, err := db.Query(“select * from products”) if err != nil { Fmt.Println(“Some amazing wrong happens in the process of query”, err) Return err } Products := make([]producy, 0) Defer rows.Close()