Input and Output in Go
fmt is a default package, used for IO. It stands for “format”.
fmt.Println()fmt.Printf()fmt.Print()Both functions from this package can be used to print something on the console. Println() does a linebreak after printing, Printf() does not. Printf() is for formatting strings.
a := 5b := 10fmt.Println(a, "Numbers", b) // '5 Numbers 10'fmt.Printf(a, "Numbers", b) // error - variables are not a string