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.2k Random number generation with crypto/rand in Go
+9.6k Golang : Detect number of faces or vehicles in a photo
+11.1k Golang : Generate DSA private, public key and PEM files example
+9.2k Golang : Detect number of active displays and the display's resolution
+5.4k Golang : Struct field tags and what is their purpose?
+10.9k Golang : Post data with url.Values{}
+11.7k Golang : 2 dimensional array example
+9.5k Golang : Check if user agent is a robot or crawler example
+11.2k Golang : Secure file deletion with wipe example
+8.7k Golang : How to find out similarity between two strings with Jaro-Winkler Distance?
+9.2k Javascript : Read/parse JSON data from HTTP response
+38.9k Golang : Remove dashes(or any character) from string