Question : how to print string in golang
Answered by : funny-fox-zxe7jjspjtt9
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!")
Source : | Last Update : Thu, 06 Jan 22