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
+36.2k Golang : Convert(cast) int64 to string
+6.2k Golang & Javascript : How to save cropped image to file on server
+11k How to test Facebook App on localhost ?
+17.5k Golang : Clone with pointer and modify value
+13k Golang : Calculate elapsed years or months since a date
+9.3k Golang : Terminate-stay-resident or daemonize your program?
+9.4k Golang : Accessing content anonymously with Tor
+6.6k Golang : Derive cryptographic key from passwords with Argon2
+21.3k Curl usage examples with Golang
+4.7k Fix Google Analytics Redundant Hostnames problem
+29.4k Golang : Login(Authenticate) with Facebook example
+7.2k Golang : File system scanning