Println vs Printf vs Print in Go : <p>I come from a land of JS and have mostly used things like <code>console.log</code> or <code>console.error</code></p>

<p>Now, the tutorial I am following, the instructor over there did something like this</p>

<pre><code>package main

import "fmt"



func main() {

    var FirstName = "Varun"
    var lastName = "bindal"

    fmt.Println(FirstName, lastName)
    fmt.Printf("%T", FirstName)
}
</code></pre>

<p>Here he did PrintF to check type instead of Println. Initially, I thought that println prints in new Line so I changed my</p>

<pre><code>fmt.Printf("%T", FirstName)
</code></pre>

<p>to </p>

<pre><code>fmt.Println("%T", FirstName)
</code></pre>

<p>but this logged <code>%T Varun</code> instead of telling me the type.</p>

<p>I went to their <a href="https://golang.org/pkg/fmt/" rel="noreferrer">site to figure it out</a> and was either unable to comprehend it or wasn't able to find it out. </p>

<p>Googling lead me know that there are three ways to log/print in Go</p>

<ol>
<li>Println</li>
<li>Printf</li>
<li>Print</li>
</ol>

<p>So, If someone call tell the difference between three of them?</p>
