[go-nuts] email body not showing up

2019-03-21 Thread pradam
I have implement below code, but body not showing up, so whats wrong with the code? // Connect to the remote SMTP server. c, err := smtp.Dial("mail.example.com:25") if err != nil { log.Fatal(err) } // Set the sender and recipient first if err := c.Mail("sen...@example.org"); err != nil {

[go-nuts] Why []Interface{} indexing failing at if statement

2018-01-29 Thread pradam
package main import ( "fmt" "reflect" ) func main() { array := []interface{}{true,1,"dodda"} arr:=array[0] fmt.Println(arr, reflect.TypeOf(arr)) // prints *true bool* if arr{ fmt.Println("This is a boolean value") //here its throwing error like: *non-boolean condition in if statement* } }

[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

[go-nuts] Web Framework for Beginners

2018-01-24 Thread pradam
Hi Gophers, As for Newbie to Go.I am excited to learn a *web framework* but I don't know where to start please help me out by suggesting a good framework for beginners. thank you, -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe

Re: [go-nuts] how to add items to an array without append function.

2018-01-12 Thread pradam
Hi Marvin, Awesome explanation. I have learnt alot things through your mail.once again you made my day. Thank you On 12-Jan-2018 9:31 PM, "Marvin Renich" <m...@renich.org> wrote: > * pradam <pradam.programm...@gmail.com> [180112 01:45]: > > I'm Newbie to g

Re: [go-nuts] how to add items to an array without append function.

2018-01-11 Thread pradam
Hi Shawn, Thank you, it was very helpful. I am not complaining about the language just exploring the how golang works. On Fri, Jan 12, 2018 at 12:31 PM, Shawn Milochik wrote: > What problem are you trying to solve? There's no reason to avoid append -- > it's the way the

[go-nuts] how to add items to an array without append function.

2018-01-11 Thread pradam
Hi Gophers, I'm Newbie to golang, var m []int //array declaration m = {1,2,3,4,5,6,7} // this throws error so I have declared an array which takes only int items, so I can append items to it with append function.: m = append(m, 1,2,3,4,5,6,7,8,9) but I want to insert items without using

Re: [go-nuts] error: incompatible types in binary expression

2018-01-10 Thread pradam
Thank you, Jan Merci, it was very helpful. On Wed, Jan 10, 2018 at 7:05 PM, Jan Mercl <0xj...@gmail.com> wrote: > On Wed, Jan 10, 2018 at 2:29 PM pradam <pradam.programm...@gmail.com> > wrote: > > > I am a newbie to golang, I have been working on this snippet f

[go-nuts] error: incompatible types in binary expression

2018-01-10 Thread pradam
Hi Gophers, I am a newbie to golang, I have been working on this snippet for a while whenever i run this snippet I am getting above error message. I am actual searched on google but i didn't get any proper solution with an explanation.help me with it. package main import ( "fmt" ) func