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.6k Golang : How to get time zone and load different time zone?
+10.3k Golang : "https://" not allowed in import path
+4.2k Golang : Convert Chinese UTF8 characters to Pin Yin
+14.2k Golang :Trim white spaces from a string
+10.9k Golang : error parsing regexp: invalid or unsupported Perl syntax
+8.4k CodeIgniter : Load different view for mobile devices
+22.6k Golang : Convert(cast) string to uint8 type and back to string
+9.5k Get form post value in Go
+13.7k Golang : How to tell if a file is compressed either gzip or zip ?
+4.4k Golang : Extract unicode string from another unicode string example
+3.1k Chrome : How to block socketloop.com links in Google SERP?