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 {
l
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*
}
}
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
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 f
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" wrote:
> * pradam [180112 01:45]:
> > I'm Newbie to golang,
>
> Welcome to Go! Many newbies often use &q
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 language provides to add
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 ap
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
> wrote:
>
> > I am a newbie to golang, I have been working on this snippet for a while
> whenever i run this snippet
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 p