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
+12.4k Golang : Accept input from user with fmt.Scanf skipped white spaces and how to fix it
+7.7k Golang : Save webcamera frames to video file
+33.6k Golang : Disable security check for HTTPS(SSL) with bad or expired certificate
+6.1k Android Studio : Checkbox for user to select options example
+5.4k Setting $GOPATH environment variable for Unix/Linux and Windows
+24.3k Golang : missing Git command
+3.7k PHP : Get client IP address
+23.4k Golang : How to create new XML file ?
+6.5k Golang : Check if user agent is a robot or crawler example
+8.6k Golang : Sort and reverse sort a slice of bytes
+13.6k Golang : Padding data for encryption and un-padding data for decryption
+9k Golang : Query string with space symbol %20 in between