Change to a backquotes
This commit is contained in:
parent
32abfe20e5
commit
a136c82b1e
@ -7,7 +7,6 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -25,7 +24,7 @@ func main() {
|
|||||||
fmt.Fprintf(b, "package %s\n\n", *pkg)
|
fmt.Fprintf(b, "package %s\n\n", *pkg)
|
||||||
fmt.Fprintf(b, "// Web3CODE is a binary representation of web3js mini.\n")
|
fmt.Fprintf(b, "// Web3CODE is a binary representation of web3js mini.\n")
|
||||||
fmt.Fprintf(b, "var Web3CODE = []byte(")
|
fmt.Fprintf(b, "var Web3CODE = []byte(")
|
||||||
fmt.Fprintf(b, strconv.Quote(string(data)))
|
fmt.Fprintf(b, "`%s`", string(data))
|
||||||
fmt.Fprintf(b, ")\n")
|
fmt.Fprintf(b, ")\n")
|
||||||
if *dst == "" {
|
if *dst == "" {
|
||||||
io.Copy(os.Stdout, b)
|
io.Copy(os.Stdout, b)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user