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
+3.6k Gogland : Datasource explorer
+7.6k Golang : Validate IPv6 example
+10k Golang : Exit, terminating or aborting a program
+4.5k Golang : Get missing location after unmarshal binary and gob decode time.
+5.3k Golang : Getting Echo framework StartAutoTLS to work
+7.2k Golang : Create and shuffle deck of cards example
+5.8k Golang : Ways to recover memory during run time.
+14.3k Golang : Merge video(OpenCV) and audio(PortAudio) into a mp4 file
+3.6k Python : Convert(cast) string to bytes example
+5.2k Golang : Word limiter example
+9.5k Golang : Print UTF-8 fonts on image example
+8k Golang : Underscore string example