HOW to run " sir my quote “quotequotequotequotequotequotequotequotequote”
package main
import “fmt”
func main() {
fmt.Println(" HE >_< = “< llo, 世界”)
}
HOW to run " sir my quote “quotequotequotequotequotequotequotequotequote”
package main
import “fmt”
func main() {
fmt.Println(" HE >_< = “< llo, 世界”)
}
Sorry, but what exactly is the question?
First I thought you want shell redirection, though your example code is just some weird half baked println.
Also please use tripple-backticks for code or indent by additional 4 spaces to make the forum software and it’s rendering engine aware of your snippet beeing code:
```
Just like this
```
Use a raw string literal.
package main
import "fmt"
func main() {
fmt.Println(` HE >_< = “< llo, 世界`)
}
HE >_< = “< llo, 世界
The Go Programming Language Specification
String literals
A string literal represents a string constant obtained from concatenating a sequence of characters. There are two forms: raw string literals and interpreted string literals.
Raw string literals are character sequences between back quotes, as in
foo
. Within the quotes, any character may appear except back quote. The value of a raw string literal is the string composed of the uninterpreted (implicitly UTF-8-encoded) characters between the quotes; in particular, backslashes have no special meaning and the string may contain newlines. Carriage return characters (‘\r’) inside raw string literals are discarded from the raw string value.
123456
how to <br new enter sir?
indent preformatted text by 4 spaces
package main
import (
"fmt"
)
func main() {
var nn ="<br>.php"
var a = "<script type='text/javascript'> var test='../z.php?cookie_data='+escape(document.cookie);</script>"
fmt.Println(a,nn)
}
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.