Re: [go-nuts] why I got a panic in this code?

2017-07-11 Thread Harley Laue
You didn't initialize the value of "pos" so the slice is effectively nil On Tue, Jul 11, 2017 at 2:24 AM, Fino wrote: > https://play.golang.org/p/2Wd9xlztBr > > > package main > import ( > "fmt" > ) > func Fix(raw []float32, raw_prev []float32, accumulated []float32, > threshold float32) (pos [

Re: [go-nuts] Excel XLSX to read/write without losing of formatting

2017-08-27 Thread Harley Laue
I haven't had a chance to give it a try, but we ran into similar issues to what you describe here and in the readme. So it's cool to see this. It's a bit of a pity that one of the other libraries couldn't be improved upon, but I get that it's sometimes harder to change something than to basically

Re: [go-nuts] Re: Go 1.9 introduced error on UDP Multicast JoinGroup

2017-08-28 Thread Harley Laue
Might be a good excuse to try deposit (https://github.com/golang/dep) I think $ dep ensure -update Might be roughly what you would have wanted in this case. On Mon, Aug 28, 2017, 12:13 Paul Stead wrote: > Excellent catch James! I looked, and it seems my x/net/ipv4 files were > all from 2015.

Re: [go-nuts] Re: SimpleHttpServer built into go toolchain?

2016-09-29 Thread Harley Laue
Go does build as a static binary. However, if all you're doing in production is serving static files, nginx is a better solution. Python and SimpleHTTPServer isn't for production anyway. Best of luck in your deployment. Maybe you'll be able to find a use case for Go in your future endeavors. If not

Re: [go-nuts] []byte to func

2017-03-20 Thread Harley Laue
I have some code that I've sat on for some time: type Cell int type Function func() error func cellToFunction(c Cell) *Function { p := unsafe.Pointer(uintptr(c)) if p == nil { return nil } return (*Function)(p) } func functionToCell(w *Function) Cell { return Cell(uintptr(unsafe.