Re: [go-nuts] Re: Tool to move identifier into new package?

2017-09-27 Thread Peter Waller
+cc Alan. Ping, I'm interested in this too. I've been looking around for tools to move declarations around but didn't find any. This would be very useful. Anyone aware of anything which has been published in a form which is easy to reuse (rather than a abandoned CL?) I saw godoctor at http://gor

Re: [go-nuts] `ltrace` yields "Couldn't find .dynsym or .dynstr in "/proc/*/exe" with binaries generated by "go build *.go"

2017-09-27 Thread Dave Cheney
Using monotonic time for implementing a distributed locking system seems fraught with difficulties. If you're using the time package to time how long operations take, just do t1 := time.Now() // time passes d := time.Since(t1) d will have the most accurate value available. On Fri, Sep 22, 2017

[go-nuts] Scope/Context in struct and interfaces design questions

2017-09-27 Thread goon12
I think the authorization/access to a todolist should be handled higher up in the application level instead of the persistence layer. -- 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 i

Re: [go-nuts] Re: Serialized HTTP requests with asynchronous responses

2017-09-27 Thread Gabriel Sullice
If it's imperative they're received in order, you cannot do anything accept wait for at least the first byte of the response. You'll never know if the request was fully received until that point. Even then, only that it was _received_, not validated (e.d. 400 response). If it is _not_ imperativ

[go-nuts] Re: Scope/Context in struct and interfaces design questions

2017-09-27 Thread Egon
I would use: ``` func DB interface { ForUser(user ID) (ListRepo, error) ForAdmin() (ListRepo, error) // or detect which one to return in User } type ListRepo interface { All() ([]*List, error) Find(id ListID) (*List, error) Create(t *List) error Update(t *List) error Delete(id ListID) error } ```

Re: [go-nuts] Re: Serialized HTTP requests with asynchronous responses

2017-09-27 Thread Donovan Hide
Seems like a simple solution is just to write HTTP requests over a single TLS connection and queue the requests and responses in order. Can't handle redirects or reconnections, but works for my purposes: https://gist.github.com/donovanhide/13c903416e166ac51c9496d225e9 -- You received this me

[go-nuts] Graphing libraries in golang

2017-09-27 Thread Vikram Rawat
I come from an R background and I am not able to find one single decent not too fancy but a decent graphing library that's good enough to work. Can you please suggest any library that is good enough for production level plots. Visualisation is the need of today. I don't believe that it doesn't h

[go-nuts] Re: Graphing libraries in golang

2017-09-27 Thread Volker Dobler
One from https://awesome-go.com/#science-and-data-analysis probably should fit your needs. Or try looking for R bindings and run your plots through R. V. On Wednesday, 27 September 2017 17:05:36 UTC+2, Vikram Rawat wrote: > > I come from an R background and I am not able to find one single decent

Re: [go-nuts] Re: How to read multi-page TIFF image?

2017-09-27 Thread Nigel Tao
On Tue, Sep 26, 2017 at 1:55 AM, Guy Allard wrote: > Adding support for multiple IFDs to the go package being discussed seems not > too difficult (reading the existing code). > > Suggest trying to contact the package authors. Hi, I'm one of the authors of the golang.org/x/image/tiff package. Lac

Re: [go-nuts] Re: How to read multi-page TIFF image?

2017-09-27 Thread Michael Jones
Not quite related, but if changes are going to happen, I want to add (or see someone add) colorspace tags to the PNG code and the TIFF code. I need it and have a work-around, but I don't know how Nigel et-al think it should be presented through the api. I'm happy to supply the work / tags / etc. (t

Re: [go-nuts] Re: Graphing libraries in golang

2017-09-27 Thread Dan Kortschak
On Wed, 2017-09-27 at 08:54 -0700, Volker Dobler wrote: > One from https://awesome-go.com/#science-and-data-analysis > probably should fit your needs. Or try looking for R bindings and > run your plots through R. https://godoc.org/gonum.org/v1/plot for the first and https://godoc.org/github.com/

Re: [go-nuts] favicon generator

2017-09-27 Thread Daniel Skinner
you could adapt something like this to your needs: https://github.com/dskinner/x/blob/master/cmd/droidscale/droidscale.go On Tue, Sep 26, 2017, 4:48 AM Joe Blue wrote: > drives me nuts making icons for web, desktop and mobiles. > > anyone know or a generator. prefer using golang :) > > -- > You

[go-nuts] internal/poll.runtime_pollWait problem on RHEL with 3.10.0-327.el7.x86_64

2017-09-27 Thread Dan Kortschak
I am seeing all.bash fail when testing cmd/go with a likely cause being internal/poll.runtime_pollWait. I'm trying to build go1.9 (with a change to the heap size), but all.bash fails as shown below. Is this a known problem? and if it is, is there a workaround. thanks ``` panic: test timed out af

Re: [go-nuts] Re: How to read multi-page TIFF image?

2017-09-27 Thread Nigel Tao
On Thu, Sep 28, 2017 at 10:28 AM, Michael Jones wrote: > Not quite related, but if changes are going to happen, I want to add (or see > someone add) colorspace tags to the PNG code and the TIFF code. It's not exactly what you're asking for, but there are already issues https://github.com/golang/g