Install Cygwin with make, gcc & g++. Download Redis tar.gz package, unpack it.
Edit deps/hiredis/net.c and add the following lines just after the include directives:
func openbrowser(url string) { | |
var err error | |
switch runtime.GOOS { | |
case "linux": | |
err = exec.Command("xdg-open", url).Start() | |
case "windows": | |
err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start() | |
case "darwin": | |
err = exec.Command("open", url).Start() |
func Escape(sql string) string { | |
dest := make([]byte, 0, 2*len(sql)) | |
var escape byte | |
for i := 0; i < len(sql); i++ { | |
c := sql[i] | |
escape = 0 | |
switch c { | |
case 0: /* Must be escaped for 'mysql' */ |
package main | |
import ( | |
"image" | |
"image/png" | |
"log" | |
"os" | |
"time" | |
"golang.org/x/image/draw" |