Re: [go-nuts] weird?

2016-12-09 Thread 'Axel Wagner' via golang-nuts
I don't understand. You are saying, that you want a method on a pointer to Age and then find it unreasonable, that you are getting a method on a pointer to Age? If you don't want the argument to be a pointer, use Age.CanDrink instead. Both are valid, because the method set of *Age contains all

[go-nuts] weird?

2016-12-09 Thread T L
package main import "fmt" import "reflect" type Age int func (age Age) CanDrink() bool { age++ return age >= 18 } func main() { var age Age = 11 Age.CanDrink(age) // (*Age).CanDrink(age) // cannot use age (type Age) as type *Age in argument to (*Age).CanDrink

[go-nuts] gob ignores default values, bug or feature?

2016-12-09 Thread Hoping White
Hi, all I find that gob encoding ignores fields when they have zero values. package main import ( "bytes" "encoding/gob" ) type Type struct { Data uint32 } func main() { var t Type buffer := bytes.NewBuffer(nil) encoder := gob.NewEncoder(buffer)

[go-nuts] [ANN] selenium - Change of ownership

2016-12-09 Thread Miki Tebeka
Hi All, I'm glad to say that Eric Garrido has taken ownership on the Selenium bindings. To avoid unnecessary downstream churn the code will still be under https://github.com/tebeka/selenium but Eric has the final word on everything. I'm sure Eric will do great things with Selenium and will

[go-nuts] Re: Go @ Work

2016-12-09 Thread jeffr
Yes, drivers for all major databases including NoSQL. -JR On Friday, December 9, 2016 at 7:36:12 AM UTC-8, Mandolyte wrote: > > Will ActiveGo come packaged with common database drivers Oracle, > Postgresql, etc. and the usual assortment of NoSQL databases? > > On Thursday, December 8, 2016 at

[go-nuts] Re: Isn't the use of Context in db/sql non-diomatic?

2016-12-09 Thread Dave Cheney
I agree with this. This feels like a case of abusing the "bag of values" nature of context's Value() feature to smuggle arbitrary and unstructured data in and out of an interface rather than change the API. On Wednesday, 7 December 2016 00:48:48 UTC+9, Chandra Sekar S wrote: > > Documentation

Re: [go-nuts] Re: Isn't the use of Context in db/sql non-diomatic?

2016-12-09 Thread Daniel Theophanes
Hi Chandra, In my view using context to store value for these uses (Read-Only and Isolation Level) is somewhat of a gray area. They are not a classical request only scope, like a tracing ID, but they also aren't strictly limited to a single request either. Say you wanted to kick off a request,

[go-nuts] how to choose padding scheme in aes.NewCipher(key []byte)

2016-12-09 Thread Pengcheng Zhang
Hi! Can I choose padding scheme in aes.NewCipher(key []byte)? like in Java Cipher.getInstance("DES/CBC/PKCS5Padding")? -- 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

Re: [go-nuts] godoc does not show from GOPATH/src/vendor

2016-12-09 Thread Peter Mogensen
On 2016-12-09 18:39, Sathish VJ wrote: I have my vendor folder like this: $GOPATH/src/vendor. This works for the code. However, godoc does not show the libraries therein. Is there a way I can fix this? Go tools are increasingly allergic to non-standard layouts. You need to put your vendor

[go-nuts] godoc does not show from GOPATH/src/vendor

2016-12-09 Thread Sathish VJ
I have my vendor folder like this: $GOPATH/src/vendor. This works for the code. However, godoc does not show the libraries therein. Is there a way I can fix this? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group

Re: [go-nuts] Re: Large 2D slice performance question

2016-12-09 Thread Michael Jones
Glad to hear this worked for you. The general conclusion that goroutines do not help with in-memory processing is inaccurate. I often do large-scale numeric computations, spread across every physical and virtual core in my computers, and find that the scaling is excellent and beneficial.

[go-nuts] Re: Large 2D slice performance question

2016-12-09 Thread Mandolyte
This worked out well. I was able to "materialize" over 1200 trees in under an hour. Pretty amazing. I didn't end up using the DenseSet code. Your quick and dirty version only handled cycles starting from start value. But other than that the concept worked out very well. I did try a version

[go-nuts] Re: Go @ Work

2016-12-09 Thread Mandolyte
Will ActiveGo come packaged with common database drivers Oracle, Postgresql, etc. and the usual assortment of NoSQL databases? On Thursday, December 8, 2016 at 12:55:57 PM UTC-5, je...@activestate.com wrote: > > > > On Friday, March 30, 2012 at 10:27:36 AM UTC-7, hcatlin wrote: >> >> Just

Re: [go-nuts] Re: invitation to gophers.slack.com

2016-12-09 Thread Ian Davis
As an aside, does anyone know if there are publicly available chatlogs from the slack channel? On Fri, Dec 9, 2016, at 02:46 PM, jorelli wrote: > ^ is this still current? I signed up sometime last week but haven't > been able to get on (._.) > > trying to get over to the chat for

[go-nuts] Re: invitation to gophers.slack.com

2016-12-09 Thread jorelli
^ is this still current? I signed up sometime last week but haven't been able to get on (._.) trying to get over to the chat for github.com/therecipe/qt, which uses a room (#qt-binding) in gophers.slack.com On Saturday, March 28, 2015 at 7:21:01 AM UTC-5, Dave Cheney wrote: > >

Re: [go-nuts] go install seems to do a lot of rebuilding in a container

2016-12-09 Thread shaun
Thanks, that's given me a great thread to pull on. All the rebuilds track back to os/user being stale due to build ID mismatch. Probably an issue with the specific configuration we've set up for our build being different to the pre-build os/user (I think we disable CGO, for one). Should be

[go-nuts] Re: Golang text template - time.Format epoch

2016-12-09 Thread 'Sergey Krutsko' via golang-nuts
Thanks Marvin for a very comprehensive answer! I will check it out. On Wednesday, December 7, 2016 at 4:30:28 PM UTC+3, Sergey Krutsko wrote: > > Hello > > I have a field in my text template: "start":"{{.Start.Format "Jan 02, 2006 > 15:04:05 UTC"}}" > > But, I want to have output as epoch time.

[go-nuts] is there bug with keyword "select" implementation?

2016-12-09 Thread Dave Cheney
Have you checked that your code is free of data races? The total == 0 condition would be my guess for a potential data race. -- 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