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
+11.4k CodeIgniter : How to check if a session exist in PHP?
+7.6k Golang : Handling Yes No Quit query input
+25.5k Golang : Get current file path of a file or executable
+10.5k Golang : Embed secret text string into binary(executable) file
+4.8k Chrome : How to block socketloop.com links in Google SERP?
+8.6k Golang : Ackermann function example
+15.2k Golang : Search folders for file recursively with wildcard support
+16.5k CodeIgniter/PHP : Create directory if does not exist example
+14.2k Golang : Compress and decompress file with compress/flate example
+6.1k Unix/Linux : How to open tar.gz file ?
+29.3k Golang : Get first few and last few characters from string
+8.5k Golang : Implementing class(object-oriented programming style)