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
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
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)
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
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
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
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,
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
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
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
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.
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
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
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
^ 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:
>
>
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
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.
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
18 matches
Mail list logo