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
+9.6k Golang : Accessing content anonymously with Tor
+43.6k Golang : Get hardware information such as disk, memory and CPU usage
+12.7k Golang : Sort and reverse sort a slice of bytes
+16.6k Golang : Delete files by extension
+6.7k Golang : How to validate ISBN?
+11.5k Golang : Concatenate (combine) buffer data example
+36.6k Golang : Save image to PNG, JPEG or GIF format.
+11.8k Golang : How to detect a server/machine network interface capabilities?
+11.4k Golang : Post data with url.Values{}
+16.4k Golang : How to extract links from web page ?
+14.3k Golang : Get uploaded file name or access uploaded files
+17.9k Golang : How to make a file read only and set it to writable again?