I did tried to change to,

func (s *set) Init(slice []string) {

but that gave loads of errors that I can't fix, hence the question.


On Thu, Jun 23, 2016 at 6:19 PM, Val <delepl...@gmail.com> wrote:

> Assigning a value to the receiver will only affect local variable.
> Try pointer receiver.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/rssS79X7aUs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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://groups.google.com/d/optout.

Reply via email to