Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Escape Sequence in Go

package main
import "fmt"

func main() {
    fmt.Println("\\Hello\nWelcome to FORGET CODE")
}


Output:-

\Hello
Welcome to FORGET CODE

Explanation:-

Escape sequences are special characters that have a specific meaning
when used within a string literal. Backslash (\) works as an escape sequence character.
For instance, the new-line \n escape sequence causes the next character to appear on a new line.