[go-nuts] git submodule vs normal go vendoring

2017-09-30 Thread JM
can anyone tell me the pros/cons of using git submodule update instead of godep govendor etc... ? git submodule update --init --recursive -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails f

[go-nuts] Link not performed when 'go install'

2017-09-30 Thread Hallgeir Holien
My Go environment(on Ubuntu 16.04 and several versions of go, including 1.9) no longer builds the executable. I have previously been able to run go get and go install to build executables to the bin folder using go1.8.3. Now, for some reason I do not get any executables. After this happened I in

[go-nuts] Memory issues when spawning 1 million go routines that communicate on a channel

2017-09-30 Thread unni
Hi, I was trying to implement the following problem statement from the book *Programming Elixer* in go. Let's write some code that creates n processes. The first will send a > number to the second. It will increment that number and pass it to the > third. This will continue until we get to th

[go-nuts] Go get -f still checking VCS

2017-09-30 Thread alexandre . ferrieux
Hi, I'm trying to build quic-go (Go implementation of the QUIC protocol https://github.com/lucas-clemente/quic-go ). As per the project's instructions, the first step is: go get -t -u ./... But doing so results in a wealth of fatal errors like: package quic-go-master: directory "/home/al

[go-nuts] Re: Bloom filter

2017-09-30 Thread lemon9010
I have read the code, one thing I'm not clearly is that the choosing of the k hash function. Is there any reason you use such location function to implement the k function, What's the advantage? 在 2011年5月21日星期六 UTC+8下午10:24:05,Will Fitzgerald写道: > > I've written an implementation of Bloom filter

[go-nuts] [ANN] gooxml Excel/Word (xlsx/docx) Library

2017-09-30 Thread Todd
We've recently released an xlsx/docx (and soon to be pptx) creation and editing library.  It's dual licensed under the AGPL and a commercial license.  It takes a different approach from existing Go OOXML libraries by using code generated from the ECMA-376 XSDs to create the XML based types, and wr

[go-nuts] Re: use of the new type aliasing

2017-09-30 Thread 'simon place' via golang-nuts
yes, you are right, but i missed out code in-between, i thought to keep it simple!! actually its this; func (x Uint64) String() string{ b:=make([]byte,8,8) n,_:=x.Write(b) return fmt.Sprintf("% X",b[:n]) } the call to its own io.Writer implementation might look odd, in isolation, a

[go-nuts] Re: use of the new type aliasing

2017-09-30 Thread 'simon place' via golang-nuts
i think i have it, my fault basically, its due to me having several versions of go, on-the-go; when go get 'install', compilation of the package was done by go1.6.2, hence the slow down when i split code off into a package. when i used type aliasing, go build used a cached compiled package tha

[go-nuts] Re: use of the new type aliasing

2017-09-30 Thread Marlon Che
It's an infinite String method recursion. func (x Uint64) String() string{ return fmt.Sprintf("% X",x) } should be changed to: func (x Uint64) String() string{ return fmt.Sprintf("% X",uint64(x)) } On Sunday, October 1, 2017 at 2:17:17 AM UTC+8, simon place wrote: > > i have a type, ju

[go-nuts] Go Fonts: Double double copyright notice in gomono.TTF and friends

2017-09-30 Thread as
The official go fonts contain two identical copyright notices inside the TTF data slice. One in UTF-8 and one in UTF16 format. These make their way into the final go binary. Bug or intentional TTF standard? https://godoc.org/golang.org/x/image/font/gofont/gomono The godoc won't display the data

[go-nuts] Re: use of the new type aliasing

2017-09-30 Thread Dave Cheney
This is unexpected. If you can demonstrate this problem with a stand alone benchmark ( in testing.B format, please) then I encourage you to raise a bug, https://golang.org/issue/new On Sunday, 1 October 2017 05:17:17 UTC+11, simon place wrote: > > i have a type, just a named wrapper for a built

[go-nuts] use of the new type aliasing

2017-09-30 Thread 'simon place' via golang-nuts
i have a type, just a named wrapper for a built-in, that amongst other things, changes the default print output. for example to hex,(not actual code) type Uint64 uint64 // string rep as hexadecimal, implementing Stringer func (x Uint64) String() string{ return fmt.Sprintf("% X",x) } then i

[go-nuts] Using chromedp , how can i check if an element is present on the page?

2017-09-30 Thread Amr Alfoly
i used to do that with python and selenium user = browser.find_element_by_css_selector(user_input) this gives me a pointer to the element or nil value , which i can check to see if the element is there but how can i do that with chromedp -- You received this message because you are subscribed to

[go-nuts] Golang request validation library

2017-09-30 Thread Saddam H
https://github.com/govalidator/validator -- 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...@googlegroups.com. For more options, visit https:/