[go-nuts] bitcoin golang

2016-09-22 Thread Anonymous
Bonjour je voudrais savoir si le code directory.io serait modifiable pour n'afficher que des adresses commençant par 1LE ? -- 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, send an

[go-nuts] Several issues on macOS Sierra

2016-09-22 Thread martin
Hello, Since upgrading to macOS Sierra, I've stumbled upon a few issues that were not present when using OSX El Capitan. All issues arise when using this package https://github.com/jteeuwen/go-bindata however from my cursory glance there's nothing specific about that code that seems troublesom

[go-nuts] TradeRev is hosting free 3-day GoLang Training Session for Toronto Developers

2016-09-22 Thread Stella Karami
TradeRev, a revolutionary vehicle appraisal and auctioning app, is inviting you to a FREE 3-day GoLang training session from October 12th to the 14th. Interested applicants can apply here

[go-nuts] Re: Request for advice: Developing for Android

2016-09-22 Thread Peter Kleiweg
I try the examples on https://github.com/golang/go/wiki/Mobile Native applications -> Building and deploying to Android works fine. On "SDK applications and generating bindings" I get into problems. It says: go get -d golang.org/x/mobile/example/bind/... I get: warning: "golang.org/

Re: [go-nuts] Wordbreak and word extraction in Go?

2016-09-22 Thread mpvl
Hi Ingo, Thanks for your interest in x/text! Text segmentation is high on the priority list for x/text, but not yet implemented. Indeed, x/text/cases implements a (close) approximation of Annex #29 optimized for title casing, but it is not the full thing. For now, if your main interest is word s

[go-nuts] Go beginner asks for code review

2016-09-22 Thread Leandro Motta Barros
Hello, I hope this is not considered off-topic: I have started learning Go a few weeks ago, and have recently finished writing my first sizable piece of Go code. I wonder if anyone would be willing to take a look at it, and give some advice on how to be more idiomatic or improve it somehow. Any f

[go-nuts] Re: Request for advice: Developing for Android

2016-09-22 Thread Elias Naur
On Thursday, September 22, 2016 at 5:34:24 PM UTC+2, Peter Kleiweg wrote: > > I try the examples on https://github.com/golang/go/wiki/Mobile > > Native applications -> Building and deploying to Android works fine. > > On "SDK applications and generating bindings" I get into problems. > > It says

[go-nuts] Re: Request for advice: Developing for Android

2016-09-22 Thread Peter Kleiweg
Op donderdag 22 september 2016 18:08:10 UTC+2 schreef Elias Naur: > > > > On Thursday, September 22, 2016 at 5:34:24 PM UTC+2, Peter Kleiweg wrote: >> >> I try the examples on https://github.com/golang/go/wiki/Mobile >> >> Native applications -> Building and deploying to Android works fine. >> >>

[go-nuts] Re: Request for advice: Developing for Android

2016-09-22 Thread Peter Kleiweg
Op donderdag 22 september 2016 18:28:43 UTC+2 schreef Peter Kleiweg: > > Op donderdag 22 september 2016 18:08:10 UTC+2 schreef Elias Naur: >> >> >> >> On Thursday, September 22, 2016 at 5:34:24 PM UTC+2, Peter Kleiweg wrote: >>> >>> I try the examples on https://github.com/golang/go/wiki/Mobile

Re: [go-nuts] Go beginner asks for code review

2016-09-22 Thread Sam Whited
On Thu, Sep 22, 2016 at 10:48 AM, Leandro Motta Barros wrote: > I hope this is not considered off-topic: I have started learning Go a few > weeks ago, and have recently finished writing my first sizable piece of Go > code. Not at all; welcome to the Go community, and congrats on your first big pr

Re: [go-nuts] Go beginner asks for code review

2016-09-22 Thread Sam Whited
On Thu, Sep 22, 2016 at 10:48 AM, Leandro Motta Barros wrote: > I wonder if anyone would be willing to take a look at it, and give some > advice on how to be more idiomatic or improve it somehow. Not sure how to do this on GitHub if it's not a PR, I don't appear to be able to leave line-level com

[go-nuts] Re: telling apart errors returned by database/sql

2016-09-22 Thread edmund . troche
This is what I expected to see and it is dissapointing to see it is not how it is implemented even 3 years after your post. On Tuesday, June 11, 2013 at 7:29:45 PM UTC-5, John Nagle wrote: > >There's a standardized set of SQLSTATE codes for SQL > systems. Postgres and IBM DB2 use them dir

[go-nuts] TCP Client can't dial to server on localhost: network is unreachable.

2016-09-22 Thread 'Константин Иванов' via golang-nuts
Related to net package. Code works fine on playground: https://play.golang.org/p/1fCIZzaUIT But on local machine I've got (every time) 2016/09/22 20:37:30 listening on: 127.0.0.0:44327 2016/09/22 20:37:30 dialing 2016/09/22 20:37:30 dial error: dial tcp 127.0.0.0:44327: connect: network is unre

[go-nuts] Re: Request for advice: Developing for Android

2016-09-22 Thread Elias Naur
On Thursday, September 22, 2016 at 6:35:13 PM UTC+2, Peter Kleiweg wrote: > > > > Op donderdag 22 september 2016 18:28:43 UTC+2 schreef Peter Kleiweg: >> >> Op donderdag 22 september 2016 18:08:10 UTC+2 schreef Elias Naur: >>> >>> >>> >>> On Thursday, September 22, 2016 at 5:34:24 PM UTC+2, Peter

Re: [go-nuts] WebP encoder

2016-09-22 Thread Aarti Parikh
Is webp encoding in pure go something that may happen in a future release? On Thursday, December 1, 2011 at 4:54:09 PM UTC-8, Nigel Tao wrote: > > On 2 December 2011 01:51, canop > wrote: > > Is there somewhere a (complete or partial) implementation of a > > (lossless) encoder and decoder that co

[go-nuts] Re: truncate float32 to lesser precision (22 bit mantissa)

2016-09-22 Thread jnc7919
Sure, as you say for your use case it might be best for you, and you might need different information from the test anyway. Usually in a fast ray tracer you'd pre-calculate the inverse of the direction components and store them (since you do LOTS of ray-bbox intersections for each ray while t

[go-nuts] Re: TCP Client can't dial to server on localhost: network is unreachable.

2016-09-22 Thread 'Константин Иванов' via golang-nuts
uname -a Linux hpg6 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux -- 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, send an email to go

Re: [go-nuts] TCP Client can't dial to server on localhost: network is unreachable.

2016-09-22 Thread Brad Fitzpatrick
Use 127.0.0.1, not 127.0.0.0 The playground's net implementation is a toy and not very accurate. On Thu, Sep 22, 2016 at 10:41 AM, 'Константин Иванов' via golang-nuts < golang-nuts@googlegroups.com> wrote: > Related to net package. > > Code works fine on playground: https://play.golang.org/p/1f

Re: [go-nuts] TCP Client can't dial to server on localhost: network is unreachable.

2016-09-22 Thread 'Константин Иванов' via golang-nuts
Curse. I sprinkle ashes upon my head. That was a stupid mistake. Yeah, 127.0.0.1 works fine. Thank you четверг, 22 сентября 2016 г., 22:29:15 UTC+3 пользователь bradfitz написал: > > Use 127.0.0.1, not 127.0.0.0 > > The playground's net implementation is a toy and not very accurate. > > > On Thu,

[go-nuts] Re: Several issues on macOS Sierra

2016-09-22 Thread Dave Cheney
Sierra broke programs compiled with previous versions of Go. You've probably got an old version of go-bindata in your path, delete that, and run go install -v github.com/jteeuwen/go-bindata/go-bindata If this line does not return at least one line of output, there is a problem in with your Go i

Re: [go-nuts] Go beginner asks for code review

2016-09-22 Thread Leandro Motta Barros
Hi Sam, Looks like your response got truncated. :-/ Anyway, there is a good deal of nice tips, there. I am updating my code to take your feedback into account. Thanks a lot! There is one point I still wondering about, however: On Thu, Sep 22, 2016 at 1:57 PM, Sam Whited wrote: > > > github.c

[go-nuts] Re: truncate float32 to lesser precision (22 bit mantissa)

2016-09-22 Thread xiiophen
On Thursday, 22 September 2016 19:43:35 UTC+1, Jamie Clarkson wrote: > > Sure, as you say for your use case it might be best for you, and you might > need different information from the test anyway. Usually in a fast ray > tracer you'd pre-calculate the inverse of the direction components and

Re: [go-nuts] Go beginner asks for code review

2016-09-22 Thread 'Chris Manghane' via golang-nuts
On Thu, Sep 22, 2016 at 3:31 PM, Leandro Motta Barros wrote: > Hi Sam, > > Looks like your response got truncated. :-/ > > Anyway, there is a good deal of nice tips, there. I am updating my code to > take your feedback into account. Thanks a lot! > > There is one point I still wondering about, ho

[go-nuts] Re: Several issues on macOS Sierra

2016-09-22 Thread martin
Dave you were right, just had to rebuild the binary. On Thursday, September 22, 2016 at 4:48:44 PM UTC-4, Dave Cheney wrote: > > Sierra broke programs compiled with previous versions of Go. You've > probably got an old version of go-bindata in your path, delete that, and > run go install -v gith

Re: [go-nuts] WebP encoder

2016-09-22 Thread Nigel Tao
On Fri, Sep 23, 2016 at 4:18 AM, Aarti Parikh wrote: > Is webp encoding in pure go something that may happen in a future release? I'd like to see that, but I have higher priority things to work on. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group

Re: [go-nuts] Go beginner asks for code review

2016-09-22 Thread Diego Medina
Hi, First, awesome that you started using Go! some thoughts inline: > 1. The sbxs_ prefix is there just because I expect this package to be part > of a set of related repositories and I wanted to give them some "unity" > through naming. Arguably a bad idea, I am not sure about it. > I have

[go-nuts] Re: Request for advice: Developing for Android

2016-09-22 Thread paraiso . marc
My advice, unless you need to do some low level stuff with the NDK in C or C++ use Java, that's the only viable way to develop for Android. With Phonegap (html,javascript) you will never take advantage of Android SDK widgets and won't be able to write background activities ,and you won't really

[go-nuts] Trying to understand GOPATH

2016-09-22 Thread leon . johnson
I'm new to golang, and I'm trying to understand the role of GOPATH. The OS X package from https://golang.org/dl/ installs to `/usr/local/go/bin/go`. Do I have to manually symlink /usr/local/go/bin/go to my PATH because the GOPATH docs lead me to believe that GOPATH to need to be set to the dir

[go-nuts] How to pass arbitrary typed (int, string, etc) slices to a golang function?

2016-09-22 Thread Lax Clarke
How would someone create a function like len ? func Len(s []interface{}) would not work because compiler complains of type mismatch if you call it with an integer slice (for example) Thanks -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

[go-nuts] How to pass arbitrary typed (int, string, etc) slices to a golang function?

2016-09-22 Thread Dave Cheney
There are two ways, one is to use reflection, the other would be to use unsafe to convert the slice value into another structure then extract the length field. Assuming that you could write a Len function as you specified, what would you do next? What problem are you trying to solve? -- You

[go-nuts] Re: Trying to understand GOPATH

2016-09-22 Thread Volker Dobler
There are two parts in your question: Am Freitag, 23. September 2016 06:13:30 UTC+2 schrieb leon.j...@gmail.com: > > [...] > Do I have to manually symlink /usr/local/go/bin/go to my PATH because the > GOPATH docs lead me to believe that GOPATH to need to be set to the > directory where my go cod

[go-nuts] idea behind error interface and github.com/pkg/errors

2016-09-22 Thread Yulrizka
Hello I was watching Dave Cheney's presentation in gopher conf and was fascinated. (btw he also wrote a blog post here http://dave.cheney.net/2016/04/27/dont-just-check-errors-handle-them-gracefully) In some case, I can relate. For example when I'm working on quite large codebase, Sometimes I

Re: [go-nuts] idea behind error interface and github.com/pkg/errors

2016-09-22 Thread Jan Mercl
Nothing prevents you from including the call stack in the error message. Especially if you prefer the way how Java error messages look. I don't. On Fri, Sep 23, 2016, 08:24 Yulrizka wrote: > Hello > > I was watching Dave Cheney's presentation in gopher conf and was > fascinated. > > (btw he als

[go-nuts] idea behind error interface and github.com/pkg/errors

2016-09-22 Thread Dave Cheney
A minor clarification. An error is any value that implements this interface type error interface { Error() string } Functions like errors.New and fmt.Errorf return an error implementation who's base type (kind) is a string, but this is an implementation detail, there are plenty of othe