On Thu, Sep 8, 2016 at 1:03 AM, Tamás Gulácsi <tgulacs...@gmail.com> wrote: > for i:=0;i<1<<20;i++{ if a[i]==0 {b=string(a[:i])}}
The first part of that could be "for i := range a". You probably want a "break" statement in there too. :-) -- 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.