Re: [go-nuts] present tool running snippet on native client: "Native Client nameservice: not implemented on Native Client"

2017-05-29 Thread Dan Kortschak
It looks like the go version hits this. Updating to a more recent go install fixes the problem (the previous was go1.3.1). On Tue, 2017-05-30 at 15:38 +0930, Dan Kortschak wrote: > I have just updated (after some years) a server I use for presenting > course material to NaCl pepper_49 (previously

[go-nuts] present tool running snippet on native client: "Native Client nameservice: not implemented on Native Client"

2017-05-29 Thread Dan Kortschak
I have just updated (after some years) a server I use for presenting course material to NaCl pepper_49 (previously pepper_39). The runnable examples I have work, however stderr is contaminated with the string "Native Client nameservice: not implemented on Native Client". The documentation for run

[go-nuts] Re: Generic service via interfaces...

2017-05-29 Thread Egon
On Monday, 29 May 2017 23:44:32 UTC+3, Darko Luketic wrote: > > Humm.. I wrote a reply but it seems it only reached Justin and not this > group. > Also I have not received other replies via email. > > Ok... > > Ayan, no that's alright it was storage.UserModelInterface > and I know what you're al

[go-nuts] Re: Which Go client for ElasticSearch?

2017-05-29 Thread kemety
Hello Philip, I searched quite a lot for any tutorials on how to write directly to the http API but couldn't find tutorials or pointers on how to do that. Any links would be of great help. Thanks On Friday, 6 November 2015 13:29:49 UTC+4, Philip Pearl wrote: > > I just wrote directly to the htt

[go-nuts] Building & using coverage instrumented Go binaries

2017-05-29 Thread Damien Lespiau
Hi all, I've been wanting for some time to have coverage instrumented programs: gather coverage data not only from running unit-tests but also from running multiple runs of the final program and testing it behaves as expected. That seems to be an easy way to cover some ground without having to

Re: [go-nuts] Re: Generic service via interfaces...

2017-05-29 Thread Ayan George
On 05/29/2017 04:44 PM, Darko Luketic wrote: > > Ayan, no that's alright it was storage.UserModelInterface and I know > what you're all saying but I saw no other way to make them type > agnostic and I'm a fan of explicitly calling things what they are > especially when I'm experimenting. And

[go-nuts] Re: Generic service via interfaces...

2017-05-29 Thread Darko Luketic
Humm.. I wrote a reply but it seems it only reached Justin and not this group. Also I have not received other replies via email. Ok... Ayan, no that's alright it was storage.UserModelInterface and I know what you're all saying but I saw no other way to make them type agnostic and I'm a fan of e

Re: [go-nuts] Re: DB not releasing connections during performance tests

2017-05-29 Thread Jesper Louis Andersen
The 1040 error is from MySQL. One thing to check is if there is a connection limit on the MySQL side, and what it happens to be. If you are quick at dispatching operations it may be that you will end up in a situation where you hit the limit as you increase load. My bet though is on what Naoki INA

Re: [go-nuts] Re: Generic service via interfaces...

2017-05-29 Thread Kevin Conway
Before we put the focus on criticism of the OP's code organisation, it's well worth investigating the likely code bug first. >but when I use var m storage.ModelInterface and then call a member function of the interface (SetName) Go panics because nil pointer dereference Based on this problem descr

[go-nuts] Re: DB not releasing connections during performance tests

2017-05-29 Thread Daniel Theophanes
If you can provide a running example that demonstrates how the database/sql package + driver opens more connections then db.SetMaxOpenConns specify, then it can be considered a bug and should be reported to https://golang.org/issue . On Thursday, May 25, 2017 at 7:25:48 AM UTC-7, viridi...@gmai

[go-nuts] Re: Help with Dataframes

2017-05-29 Thread Vikram Rawat
Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Thank You Very very very MUCH My brain was about to bleed to death... I am not a programmer but somebody suggested me GOLANG and I started it just a MONTH Ago. It's quite different and hard to grasp But if

Re: [go-nuts] Help with Dataframes

2017-05-29 Thread Ayan George
On 05/29/2017 07:23 AM, Vikram Rawat wrote:> Can anybody please tell me how to write GOTA Golang dataframes on a csv... > > It's been 2 days I am trying to find a way to write dataframes onto a > csv. can anybody please help me understand what does this IO.writer > means and how to use it... > >

Re: [go-nuts] Help with Dataframes

2017-05-29 Thread Sebastien Binet
Vikram, On Mon, May 29, 2017 at 1:23 PM, Vikram Rawat wrote: > Can anybody please tell me how to write GOTA Golang dataframes on a csv... > > It's been 2 days I am trying to find a way to write dataframes onto a csv. > can anybody please help me understand what does this IO.writer means and > ho

Re: [go-nuts] Help with Dataframes

2017-05-29 Thread Jesper Louis Andersen
Don't give up! When things becomes to daunting, go do something else then come back later. Brains needs some processing time. Your post suggests that you are missing some background information and that you are plunging into deep waters. io.Writer is an interface, which is a concept central to Go.

[go-nuts] Help with Dataframes

2017-05-29 Thread Vikram Rawat
Can anybody please tell me how to write GOTA Golang dataframes on a csv... It's been 2 days I am trying to find a way to write dataframes onto a csv. can anybody please help me understand what does this IO.writer means and how to use it... I have given up understanding it... Please any help wi

[go-nuts] Re: Generic service via interfaces...

2017-05-29 Thread Egon
Don't put organize by structure, this is what seems to be causing the most of the damage, I would suggest implementing as: assets/* cmd/root.go cmd/server.go storage/mongo/user.go storage/id.go user/user.go user/service.go forum/server.go main.go User package would look like: package user im

Re: [go-nuts] Generic service via interfaces...

2017-05-29 Thread Ayan George
On 05/28/2017 02:40 PM, Darko Luketic wrote: > I'm stuck and I hoped it wouldn't come to that. > As Justin said, interfaces on their own don't do anything and their zero value is nil. Beyond that I'd consider thinking more carefully about your interface names. Whenever I see the word "interfac

[go-nuts] Re: DB not releasing connections during performance tests

2017-05-29 Thread Naoki INADA
> My question is why does the db not re-using the connections or why does it not release the connections soon enough? Because number of required connections are very volatile than you think. When required connections changed like 50 -> 0 -> 50 -> 0 -> 50 -> 0 in each 50ms (300ms total), you clos

Re: [go-nuts] remove last index of character from string and also want use strings.LastIndex(s, sep string)

2017-05-29 Thread messju mohr
Ah, my bad. Of course, you are right. On Fri, May 26, 2017 at 05:55:14PM -0700, long.a...@gmail.com wrote: >Thanks for your reply. the `str[0:len(str)-1]` not work for NO ascii >chracters. >https://play.golang.org/p/7i6-3Zcy36 > >On Friday, May 26, 2017 at 11:06:10 PM UTC+8, messj