1package Main
2//you need to import fmt
3import ("fmt")
4
5func main(){
6 //then you can use:
7 fmt.Print("this message will be printed without a linefeed at the end")
8 //or
9 fmt.Println("this message will be printed with a linefeed a the end")
10 //or the \n is a line feed
11 fmt.Printf("You can also use %s formatings with Printf \n (PS : this message won't end with a line feed)","multiples")
12 // will output :
13 /*You can also use multiples formatings with Printf
14 (PS : this message won't end with a line feed)*/
15}
16// More infos at https://golang.org/pkg/fmt/ or in the source