printf and println



println

package main
import "fmt"

func main() {
  name := "jim"
  fmt.Println("Hello world %s"\n, name)
}

go run a.go will give us Hello world %s jim

printf

package main
import "fmt"

func main() {
  name := "jim"
  fmt.Printf("Hello world %s\n", name)
}

This time, we get Hello world jim

9 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.


    rpa training in chennai | best rpa training in chennai | rpa training in chennai | rpa training in bangalore
    rpa training in pune | rpa online training

    ReplyDelete
  4. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.
    Data Science training in Chennai | Data science training in bangalore
    Data science training in pune| Data science online training
    Python training in Kalyan nagar

    ReplyDelete
  5. This is a nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
    java training in omr | oracle training in chennai

    java training in annanagar | java training in chennai

    ReplyDelete
  6. I recently came across your blog and have been reading along. I thought I would leave my first comment.
    online Python certification course
    python training in OMR
    python training course in chennai

    ReplyDelete
  7. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.. 

    best rpa training in chennai | rpa online training |
    rpa training in chennai |
    rpa training in bangalore
    rpa training in pune

    ReplyDelete
  8. The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
    Best Devops Training in pune

    ReplyDelete