Move to mewn

This commit is contained in:
Lea Anthony
2019-02-18 08:31:22 +11:00
parent 3bc86a4f50
commit 8e909fc9f4
13 changed files with 118 additions and 96 deletions

View File

@@ -1,12 +1,7 @@
package wails
import (
"log"
"strings"
"github.com/wailsapp/wails/cmd"
"github.com/gobuffalo/packr"
)
func escapeJS(js string) (string, error) {
@@ -15,15 +10,3 @@ func escapeJS(js string) (string, error) {
result = strings.Replace(result, "\n", "\\n", -1)
return result, nil
}
// BoxString wraps packr.FindString
func BoxString(box *packr.Box, filename string) string {
result, err := box.FindString(filename)
if err != nil {
if BuildMode == cmd.BuildModeBridge {
return ""
}
log.Fatal(err)
}
return result
}