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
+5.5k Golang : Convert an executable file into []byte example
+11.7k Golang : Pass database connection to function called from another package and HTTP Handler
+5.4k Golang : Handling image beyond OpenCV video capture boundary
+18.3k Golang : Convert seconds to human readable time format example
+6.2k Golang : Use modern ciphers only in secure connection
+5.7k Golang : Check if password length meet the requirement
+16.9k Golang : Display list of time zones with GMT
+16.2k Golang : Parse date string and convert to dd-mm-yyyy format
+3.6k Golang : Valued expressions and functions example
+11.6k Golang : How to calculate the distance between two coordinates using Haversine formula
+10k Golang : Create S3 bucket with official aws-sdk-go package
+9.6k Golang : Get currencies exchange rates example