Initial commit of wails build

This commit is contained in:
Lea Anthony
2019-01-08 07:58:46 +11:00
parent 96996431b4
commit 4742fd7ed2
36 changed files with 5261 additions and 2 deletions

12
utils.go Normal file
View File

@@ -0,0 +1,12 @@
package wails
import (
"strings"
)
func escapeJS(js string) (string, error) {
result := strings.Replace(js, "\\", "\\\\", -1)
result = strings.Replace(result, "'", "\\'", -1)
result = strings.Replace(result, "\n", "\\n", -1)
return result, nil
}