On Thu, Apr 18, 2019 at 7:19 PM Jamil Djadala wrote:
>
> On Thu, 18 Apr 2019 11:34:25 -0700
> Ian Lance Taylor wrote:
>
> > That said, I have to agree that defining methods on types defined by
> > cgo is never necessary and can only cause confusion. And cgo could
> > report an error when it sees
On Thu, 18 Apr 2019 11:34:25 -0700
Ian Lance Taylor wrote:
> That said, I have to agree that defining methods on types defined by
> cgo is never necessary and can only cause confusion. And cgo could
> report an error when it sees it. So please consider opening an issue
> to change cmd/cgo to is
Hey everyone,
I'm once again hiring Senior Developers as TreeTop Commons continues to
grow! We've got three openings that were just posted: Sr API Developer, Sr
Identity & Access Management Developer, as well as a Senior Front End
Developer. It's a cool small-ish (company has ~28 employees) org
Hi,
Sorry I missed this email as I am not subscribed to email updates in this group.
This project currently only supports being built on Linux 64 bit. It is being
developed on a machine with Intel Optane DC Persistent Memory
(https://www.intel.com/content/www/us/en/architecture-and-technology/op
Sure, I'm still learning Go, so it's probably more idiotic than idiomatic,
but help yourself:
https://github.com/WhiteHexagon/go2aws
Peter
On Thursday, 18 April 2019 18:03:05 UTC+2, Jim Ancona wrote:
>
> Is your Cognito provider open source? I might have a use for that/
>
> Jim
>
>
--
You rec
Hello Folks,
Having some confusion for freeing memory allocated by C.String().
Filter_CSo my program is something like below.
A. Should we just call C.Free after line 6 for Filter_C directly or defer
is just fine.
B. Currently we are expecting the user of fetchdata() to free the
Context_C, a
On Thu, Apr 18, 2019 at 9:17 AM Jan Mercl <0xj...@gmail.com> wrote:
>
> On Thu, Apr 18, 2019 at 6:07 PM Jamil Djadala wrote:
> >
> > On Thu, 18 Apr 2019 07:44:53 -0700 (PDT)
> > peterGo wrote:
> >
> > > Cgo translates C types into equivalent unexported Go types.
> > > https://golang.org/cmd/cgo/
On Thu, Apr 18, 2019 at 6:07 PM Jamil Djadala wrote:
>
> On Thu, 18 Apr 2019 07:44:53 -0700 (PDT)
> peterGo wrote:
>
> > Cgo translates C types into equivalent unexported Go types.
> > https://golang.org/cmd/cgo/
>
>
> But then, definition of new methods on non-local types is forbidden.
> Why it
I just ran into an issue with a closure inside a function that I originally
created elsewhere with the same names as where I transplanted the closure
definition, and it took me quite some time to root out all the references
to the outer scope.
Scope bleed and shadowing with closures is somethin
On Thu, 18 Apr 2019 07:44:53 -0700 (PDT)
peterGo wrote:
> Cgo translates C types into equivalent unexported Go types.
> https://golang.org/cmd/cgo/
But then, definition of new methods on non-local types is forbidden.
Why it is enabled for cgo types ?
--
Jamil Djadala
--
You received this m
Is your Cognito provider open source? I might have a use for that/
Jim
On Wed, Apr 17, 2019 at 3:55 PM whitehexagon via golang-nuts <
golang-nuts@googlegroups.com> wrote:
> Thanks Jim, and for the sympathy :) I'm almost tempted to use the REST
> API and bypass the SDK... I already implemented
Thank you for the invite. I would be pleased to be of assistance. While I
do not wish to relocate to Chine, I would very much like to visit. I am
located in Arkansas USA and have some limited experience with Mandarin.
On Wednesday, April 17, 2019 at 7:34:22 AM UTC-5, chandler song wrote:
>
>
> 中
Hello Everyone,
I'd like feedback on a new package designed so that it is easy to convert
loops into version with limited concurrency. The concurrency is limited in
the sense that the number of tasks running in parallel is limited, but
otherwise you should be able to convert any loop into a co
> offset, err := f.Seek(0, io.SeekCurrent)
my code has been written so long ago i didn't even notice os.SEEK_CUR
is deprecated :)
--
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, s
On Thu, Apr 18, 2019 at 10:34:24PM +0800, sa517...@mail.ustc.edu.cn wrote:
> I want to know file's current read offset after open a file, but I can not
> found related API.
>
> f, err := os.Open("/tmp/")
> if err != nil{
> panic(err)
> }
>
> ..
offset, err := f.Seek(0, os.SEEK_CUR)
On Thu, Apr 18, 2019 at 8:50 AM wrote:
>
> I want to know file's current read offset after open a file, but I can not
> found related API.
>
>
>
>
>
> f, err := os.Open("/tmp/")
> if err != nil{
> panic(err)
> }
>
> ... // some read opera
I want to know file's current read offset after open a file, but I can not
found related API.
f, err := os.Open("/tmp/")
if err != nil{
panic(err)
}
... // some read operation
// how can I get f's current read
Cgo translates C types into equivalent unexported Go types.
https://golang.org/cmd/cgo/
Peter
On Thursday, April 18, 2019 at 2:25:11 AM UTC-4, dja...@gmail.com wrote:
>
> Hi,
> where is documented that methods can be created on C types ?
>
> This works with go1.12.4, linux:
> https://play.golang.
18 matches
Mail list logo