Skip to content

fmt

fmt.Printf()

Format and print a string with variable:

go
fmt.Printf("%c", variable) // %c means raw content

fmt.Println()

Print a new line:

go
fmt.Println(string(variable))