Re: [go-nuts] Multiple-Deminisional Array Declaration

2018-01-26 Thread Sebastien Binet
pradam, you need to create a new type that aggregates a (presumably) integer and a string. type Animal struct { Value int Name string } data := []Animal{{12,"cat"}, {42, "feline"}} hth, -s On Fri, Jan 26, 2018 at 6:38 PM, pradam wrote: > Hi Gophers, > > I'm Newbie to Go, I have List

[go-nuts] Multiple-Deminisional Array Declaration

2018-01-26 Thread pradam
Hi Gophers, I'm Newbie to Go, I have List of Tuple in python as you see below *data = [* *(435347,'cat'),(435347,'feline'),(435347,'lion'), (6765756,'dog'),(6765756,'hound'),(6765756,'puppy'), (435347,'kitten'),(987977,'frog')]* i have googled it but everywhere th