Answers for "print in golang"

Go
0

how to print string in golang

package Main

import ("fmt")

func main(){
	//print formatted line
    fmt.Printf("Hello %s", var1)
    
    //print line with linefeed
    fmt.Println("Hello World!")
    
    //print line without linefeed
    fmt.Print("Hello World!")
Posted by: Guest on December-30-2021

Browse Popular Code Answers by Language