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
+4.3k Golang : Qt update UI elements with core.QCoreApplication_ProcessEvents
+12.6k Golang : Gin framework accept query string by post request example
+6.1k Golang : Accessing dataframe-go element by row, column and name example
+4.4k Golang : Reclaim memory occupied by make() example
+10.2k Golang : Simple file scaning and remove virus example
+8.9k Golang : Find and replace data in all files recursively
+7.5k Golang : How to join strings?
+7.7k Golang : Gorilla web tool kit schema example
+8.4k Golang : Launch Mac OS X Preview (or other OS) application from your program example
+5k Golang : Function as an argument type example
+14.8k Golang : How to check if input from os.Args is integer?
+20.1k Golang : Upload big file (larger than 100MB) to AWS S3 with multipart upload