Golang : Dealing with backquote
Just a quick tutorial note on how to deal with backquote in Golang or rather a note for myself :P
Wrap the backquote with "
in order to place a backquote inside a fmt.Println()
function.
For example :
package main
import "fmt"
func main() {
fmt.Println("" + "`" + "")
// in between string
fmt.Println(("a " + "`" + " backquote"))
}
Output :
`
a ` backquote
Hope you may find this simple tutorial useful.
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+18.5k Golang : Set or Add HTTP Request Headers
+12.4k Golang : Check if an integer is negative or positive
+15.5k Golang : Get input from keyboard
+7.3k Golang: Prevent over writing file with md5 hash
+4.8k Javascript : How to replace HTML inside <div>?
+4.1k Golang : Display packages names during compilation
+7k Golang : Oanda bot with Telegram and RSI example
+6.8k Golang : Regular Expression find string example
+5.1k Golang : Process non-XML/JSON formatted ASCII text file example
+9.6k Golang : Command line file upload program to server example
+13.3k Golang : Normalize unicode strings for comparison purpose
+4.8k CodeIgniter/PHP : Remove empty lines above RSS or ATOM xml tag