Re: [go-nuts] Need explain on error inteface work?

2016-09-16 Thread Giang Tran
got it, thank you. On Saturday, September 17, 2016 at 12:14:34 AM UTC+7, Ian Lance Taylor wrote: > > On Fri, Sep 16, 2016 at 8:24 AM, Giang Tran <sec...@gmail.com > > wrote: > > > > I have a small test like this > > > > package main > > > &

[go-nuts] Need explain on error inteface work?

2016-09-16 Thread Giang Tran
Hello I have a small test like this package main type MError struct { } func (m *MError) Error() string { return "MError" } func NewMError() *MError { return nil } func main() { var e error e = NewMError() println(e.Error()) } I know that interface actually combine like (Type,

[go-nuts] Re: Golang Rabbit MQ Fanout Exchange Multiple Consumers

2016-07-04 Thread Giang Tran
it's because you use single queue for both of consumer, in fanout exchange, message is copy to all the queue bind to this exchange. Inorder to has 2 copy, you must have to use 2 queue(use different queue name). On Monday, July 4, 2016 at 10:09:03 PM UTC+7, Rakesh Goyal wrote: > > > > down