[go-nuts] Re: json murshal/unmarhsal struct that was got using custom interface type

2016-08-01 Thread nathan.leclaire via golang-nuts
Viacheslav, Your best bet here in my opinion is to have an intermediate object that contains type information which you Unmarshal into first to get the concrete type. Then, you have a switch to Unmarshal the remainder of the object into the real deal. We did a similar mechanic to this on Dock

Re: [go-nuts] Using golang/cmd/pprof/internal in a Go program, and/or UNIX socket support in `go tool pprof`?

2016-07-30 Thread nathan.leclaire via golang-nuts
Yes ideally I would like end users to be able to "click a button" and get the file to send to us without necessarily needing for them to have socat or Go toolchain installed. There are some existing Go programs that I might be able to embed the functionality in which is why I considered using t

[go-nuts] Using golang/cmd/pprof/internal in a Go program, and/or UNIX socket support in `go tool pprof`?

2016-07-29 Thread nathan.leclaire via golang-nuts
Hi all, I am interested in doing performance profiling on the Docker daemon using the existing pprof tools and/or code inside of the internal packages of commands, and I was hoping to get some guidance on the challenges I've encountered attempting this. The Docker daemon (a Go program) exposes