Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Creating a generic query function

Received: by 10.205.130.14 with SMTP id hk14mr341707bkc.5.1346279081351;
        Wed, 29 Aug 2012 15:24:41 -0700 (PDT)
X-BeenThere: mgo-users@googlegroups.com
Received: by 10.204.157.26 with SMTP id z26ls2268849bkw.1.gmail; Wed, 29 Aug
 2012 15:24:40 -0700 (PDT)
Received: by 10.204.130.7 with SMTP id q7mr343320bks.2.1346279080566;
        Wed, 29 Aug 2012 15:24:40 -0700 (PDT)
Received: by 10.204.130.7 with SMTP id q7mr343319bks.2.1346279080548;
        Wed, 29 Aug 2012 15:24:40 -0700 (PDT)
Return-Path: <pama...@gmail.com>
Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170])
        by gmr-mx.google.com with ESMTPS id e23si6264533bks.0.2012.08.29.15.24.40
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 29 Aug 2012 15:24:40 -0700 (PDT)
Received-SPF: pass (google.com: domain of pama...@gmail.com designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of pama...@gmail.com designates 209.85.217.170 as permitted sender) smtp.mail=pama...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-lb0-f170.google.com with SMTP id gp3so117480lbb.29
        for <mgo-users@googlegroups.com>; Wed, 29 Aug 2012 15:24:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=references:from:in-reply-to:mime-version:date:message-id:subject:to
         :content-type;
        bh=mvYaOrI2S6JxMX1uIjg6Kl1gybA40mQoHKtUxd88ofU=;
        b=HNbHtDe/1MIa8YgYF7UKIo6Rqq2NIYhI8/VSZwkRW+hZ8WGgDNuIIKTFJjp+dbnabs
         +89D27OQCQTGTm7VAxafUkr0dzKENZHaKIjFObxRYEBDOZYAJSAj9IoEO0KQDmZQS1C9
         Zuarz9qECOAVmdPpT3OCEWE24nPBZwezj+bdl3SE/7qh6bwmkniiHZk9UNjsZQjrVJUN
         DdJpq6apbch6yezd20woyz1EWxkCAEnMuCV9pWDvIqESVg75G3noZhDW4ZmulxbapJpG
         S3/GIpl5b1dd1u7euRrYQoj4Yp+Tl+83jvufHoInnVvCVlvxZH03nyMLxCO4MER49yHA
         XOiA==
Received: by 10.152.128.230 with SMTP id nr6mr1539429lab.24.1346279080293;
 Wed, 29 Aug 2012 15:24:40 -0700 (PDT)
References: <768158b3-c731-4e91-8cc1-3e28fe614...@13g2000vbf.googlegroups.com>
 <CANySw1kf=A5T4Sv9OUc541t_=yANi-h_egL=bn76cFLnwVJ...@mail.gmail.com>
 <75b837c9-5b3e-4998-82e3-91ffefe87ab3@googlegroups.com> <CANySw1=3goMy-3UKm+x5Hppki7S1XT-6=X1HjN52_uYxipZ...@mail.gmail.com>
 <8d0ed0e7-5272-492d-ab58-54e225d3bf0f@googlegroups.com> <CANySw1kMMw35dW6wdqM3BdR2jYpCz9qo9sxr9c68vTmPL=N...@mail.gmail.com>
 <704afbf0-9aa9-4092-90e5-6f0ac3683200@googlegroups.com> <CANySw1=6QiheOsGnhFpY77DEP4r7AXUwmOOoiqCVfdjA2OC...@mail.gmail.com>
 <9ffeb054-7068-4582-baec-6e83dcc32784@googlegroups.com> <CANySw1mYO9hUtk129PNqfwyJa9DR52Rp8gRycTumO3u3pOD...@mail.gmail.com>
 <985317c2-c334-43ec-8aec-473f00a31...@h5g2000yqh.googlegroups.com>
From: "Patrick-Ranjit D. Madsen" <pama...@gmail.com>
In-Reply-To: <985317c2-c334-43ec-8aec-473f00a31...@h5g2000yqh.googlegroups.com>
Mime-Version: 1.0 (1.0)
Date: Thu, 30 Aug 2012 00:22:46 +0200
Message-ID: <-4617712848209289923@unknownmsgid>
Subject: Re: Creating a generic query function
To: "mgo-users@googlegroups.com" <mgo-users@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

I Think hus point is that you are making some very basic mistakes that
could easily be caught if you sat down and read the language
documentation. This is not an mgo-driver issue, you are having Go
issues.

Hilsen

Patrick-Ranjit D. Madsen

Sent from my mobile. Please excuse any and all typos, errors,
formatting, lack of punctuation or short responses.

On 30/08/2012, at 00.22, dpapathanasiou <denis.papathanas...@gmail.com> wrote:

> No need to be sarcastic
>
> On Aug 29, 6:16 pm, Gustavo Niemeyer <gust...@niemeyer.net> wrote:
>> On Wed, Aug 29, 2012 at 7:01 PM, dpapathanasiou
>>
>> <denis.papathanas...@gmail.com> wrote:
>>>> func yourQuery(c *mgo.Collection, result interface{}) error
>>
>>> The first time I tried this, I got this runtime error:
>>
>>> panic: result argument must be a slice address
>>
>> Yep, it must be an address.
>>
>> You can find introductory documentation about Go here:
>>
>>    http://golang.org/doc/
>>
>> gustavo @http://niemeyer.net