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
+10k Golang : Convert octal value to string to deal with leading zero problem
+17.5k Golang : Multi threading or run two processes or more example
+5.4k Javascript : How to loop over and parse JSON data?
+5.3k Golang : Calculate half life decay example
+17.8k Golang : Iterate linked list example
+4.5k Java : Generate multiplication table example
+12.3k Golang : Display list of countries and ISO codes
+15.5k Golang : Find location by IP address and display with Google Map
+5.6k PHP : Convert CSV to JSON with YQL example
+7.5k Golang : Detect sample rate, channels or latency with PortAudio
+16.5k Golang : Check if a string contains multiple sub-strings in []string?
+17.9k Golang : Defer function inside init()