Re: [go-nuts] Disadvantage of Go

2017-01-12 Thread Shawn Milochik
I recommend reading this. It addresses several of your concerns. https://talks.golang.org/2012/splash.article No decisions were made to annoy developers. Different people coming from different languages see different things as "flaws," when in reality they are just differences. Also: https://go

[go-nuts] Disadvantage of Go

2017-01-12 Thread hui zhang
Disadvantage of Go 1 No Generic For Now That make user coding repeat code many times, even for basic type such as int float bool It is not easy , even to make a generic min function. using interface will always check type casting. and for []interface{} in generic function, u can't do cast 2 In

[go-nuts] Autocert on localhost?

2017-01-12 Thread junkmailcloud
https://godoc.org/golang.org/x/crypto/acme/autocert How do I get this to work on localhost? Any examples? -- 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 golang-

Re: [go-nuts] Reading http directory

2017-01-12 Thread Konstantin Khomoutov
On Wed, 11 Jan 2017 14:46:29 -0800 (PST) Nako Zeta wrote: > Is there any package to read http directories? > > For example to read an Apache index of /files/ > > I been doing this using goquery and parsing the HTML to know if its a > folder or a file but I am looking for better alternatives D

[go-nuts] Re: How hard it is to write android app in Go if compare to traditional Java SDK (nowadays) ?

2017-01-12 Thread Egon
On Friday, 13 January 2017 01:14:18 UTC+2, fsn7...@gmail.com wrote: > > Let's say I wanna create 2D game in Go, would it be painful today (let's > not consider that there are already some game engines in Java) ? > Even without a game-engine, it wouldn't be that painful. * https://github.com/loov/

Re: [go-nuts] How hard it is to write android app in Go if compare to traditional Java SDK (nowadays) ?

2017-01-12 Thread Taksan
Your question is simple, but, would require a long conversation to answer... :) I have been using java for... like... more than 10 years now... and still... I am thinking on making my next game in Go, not in java. First, there are already lots of game frameworks in Go, there "used" to be a lot o

[go-nuts] How hard it is to write android app in Go if compare to traditional Java SDK (nowadays) ?

2017-01-12 Thread fsn761304
Let's say I wanna create 2D game in Go, would it be painful today (let's not consider that there are already some game engines in Java) ? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails fr

[go-nuts] Re: Procs lines in Trace web viewer

2017-01-12 Thread Val
Thanks Marco. Indeed these 1-pixel-wide events have titles "syscall", "proc stoc", this in not really comparable with the first line. On Thursday, January 12, 2017 at 2:35:21 PM UTC+1, Marko Kevac wrote: > > Library which is used to draw this charts have few event types internally. > Some event

Re: [go-nuts] Re: http/2 client vs. GOAWAY

2017-01-12 Thread Brian Fallik
Thanks. I logged https://github.com/golang/go/issues/18639. On Thu, Jan 12, 2017 at 10:49 AM, James Bardin wrote: > Form the SO link the frame was sent with ErrCode=NO_ERROR, which I would > assume would be handled silently by the transport. > > Not ruing out the ALBs doing something strange, but

[go-nuts] Interfaces and sync.Mutex

2017-01-12 Thread Dave Cheney
If you had this type I interface { ... } type T struct { sync.Mutex } var t T var i I = t This is a mistake because a *copy* of the contents of t is assigned to i. Every assignment in Go is a copy, there are no exceptions. To solve this assignment the *address* of t to I. var i I = &t O

Re: [go-nuts] Re: Efficient ForEach() on a map protected by a mutex

2017-01-12 Thread Dragos Harabor
On Wednesday, January 11, 2017 at 11:08:37 PM UTC-8, tsuna wrote: > > On Sun, Jan 8, 2017 at 8:42 AM, Dragos Harabor > wrote: > > You can compile/run with -race : > > https://golang.org/doc/articles/race_detector.html > > Yes I’m very familiar with this, thank you, but the race detector > doe

Re: [go-nuts] Re: Go mobile is not downloading on my OSX 10.12 system. What is going on?

2017-01-12 Thread Hyang-Ah Hana Kim
How did you find nothing happened? Try gomobile init -v -x to see what's happening underneath. On Wed, Jan 11, 2017 at 8:57 PM, Shyamal Chandra wrote: > The instruction found on google search don't know either. > > https://github.com/golang/go/issues/15484 > > > On Wednesday, January 11, 2017

Re: [go-nuts] encoding.BinaryMarshaler interface

2017-01-12 Thread hanisch
Thanks so much for your reply! Yes, making Foo an io.WriterTo is exactly what I was looking for! I'll have Foo implement both WriteTo and MarshalBinary methods (with the latter making a new backing array with each call, and possibly using a sync.Pool later on, after benchmarking actual use cas

[go-nuts] Re: http/2 client vs. GOAWAY

2017-01-12 Thread James Bardin
Form the SO link the frame was sent with ErrCode=NO_ERROR, which I would assume would be handled silently by the transport. Not ruing out the ALBs doing something strange, but I would open an issue none the less. On Wednesday, January 11, 2017 at 5:18:54 PM UTC-5, Brian Fallik wrote: > > Hel

[go-nuts] Re: Interfaces and sync.Mutex

2017-01-12 Thread Volker Dobler
Am Donnerstag, 12. Januar 2017 15:57:40 UTC+1 schrieb Jens Hausherr: > > Hi, > > here is some code that puzzles me. I recently had defined an interface in > a project and had a struct implementing the interface an including > "sync.RWMutex" at the same time. > > Sample Code (running): https://pla

Re: [go-nuts] Re: State of the database drivers in go

2017-01-12 Thread Josh Kamau
I have an app in production using Postgres. The library has never been a problem. I have read good reviews for mgo but i have not used it personally Josh On Thu, Jan 12, 2017 at 6:39 PM, Henrik Johansson wrote: > Mgo https://labix.org/mgo seems to be very well maintained. > > tors 12 jan. 20

Re: [go-nuts] Re: State of the database drivers in go

2017-01-12 Thread Henrik Johansson
Mgo https://labix.org/mgo seems to be very well maintained. tors 12 jan. 2017 kl 16:26 skrev snmed : > Thank you for your answer, so far i think at least for the rdbms there are > maintained drivers. So i need just a reliable NoSql Driver for a > Document-Based Storage. > Go is awesome i hope the

[go-nuts] Re: State of the database drivers in go

2017-01-12 Thread snmed
Thank you for your answer, so far i think at least for the rdbms there are maintained drivers. So i need just a reliable NoSql Driver for a Document-Based Storage. Go is awesome i hope the eco system will grow in the future and the language can stand against rust and the omni present of c/c++.

[go-nuts] State of the database drivers in go

2017-01-12 Thread Daniel Theophanes
I know drivers for postgesql, MySQL, Ms SQL server, and Oracle are maintained. -- 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 golang-nuts+unsubscr...@googlegroup

Re: [go-nuts] State of the database drivers in go

2017-01-12 Thread snmed
Thank you Josh for your reply. Do you have any experience with this driver and do you know a reliable Nosql Db Driver (Document Based)? Are the MongoDB Driver mgo for production ready? Cheers snmed Am Donnerstag, 12. Januar 2017 16:04:31 UTC+1 schrieb Josh Kamau: > > This https://github.com/lib/

Re: [go-nuts] State of the database drivers in go

2017-01-12 Thread Josh Kamau
This https://github.com/lib/pq which is the postgres driver has commits in the last 15 days. Josh On Thu, Jan 12, 2017 at 11:22 AM, snmed wrote: > Dear all > > I'm planning my next project which is a data centric application with use > of at least one rdbms and one nosql database. > So far i u

[go-nuts] Interfaces and sync.Mutex

2017-01-12 Thread Jens Hausherr
Hi, here is some code that puzzles me. I recently had defined an interface in a project and had a struct implementing the interface an including "sync.RWMutex" at the same time. Sample Code (running): https://play.golang.org/p/DExfr3Izao If you execute this code it just runs fine. If I "go vet

[go-nuts] State of the database drivers in go

2017-01-12 Thread snmed
Dear all I'm planning my next project which is a data centric application with use of at least one rdbms and one nosql database. So far i used go only for some small command line tools, but i'm overwhelmed by the clean and nice syntax. So i was looking for database support in go and stumbled ove

[go-nuts] Re: Procs lines in Trace web viewer

2017-01-12 Thread Marko Kevac
Library which is used to draw this charts have few event types internally. Some event types have begin and an end (let's call them "events with duration"), some are instant. An instant event can happen asynchronously (at the same time) with an event with duration. In that case, chart library put

[go-nuts] Using nested vendor directories in go 1.7

2017-01-12 Thread Debraj Manna
I have a go project having the following packages:- go list ./... | grep -v /vendor/ github.com/jab/JSes github.com/jab/JSes/src/common/config github.com/jab/JSes/src/common/logger github.com/jab/JSes/src/common/monitor github.com/jab/JSes/src/handlers/healthcheck github.com/jab/JSes/src/handlers

Re: [go-nuts] Resolving 'cannot find package' error with vendor in go 1.7

2017-01-12 Thread Debraj Manna
This has been discussed further in stackoverflow . On Wed, Jan 11, 2017 at 4:46 PM, DM wrote: > I have a project structure which looks like below:- > > session-service > _libs //Contains

Re: [go-nuts] Re: Gomobile: Getting errors when trying to build reverse example

2017-01-12 Thread Elias Naur
Every required change should be in now. Please try again. On Friday, January 6, 2017 at 8:09:22 PM UTC+1, glenford williams wrote: > > thanks. any idea when this will merged? > > On Sunday, 1 January 2017 17:28:01 UTC-5, Elias Naur wrote: >> >> That was more difficult than expected. The CL series

[go-nuts] Re: Efficient ForEach() on a map protected by a mutex

2017-01-12 Thread Egon
On Saturday, 7 January 2017 03:12:54 UTC+2, tsuna wrote: > > > Is there a better way? > It depends on the problem being solved by the map. And on all the different statistics: R/W ratio, key and value types, map size, what *fn* does etc. etc. + Egon > -- You received this message because y