Format go code.

This commit is contained in:
Benjamin Manns
2014-03-06 10:45:21 -08:00
parent 922993c258
commit baf468973f
6 changed files with 37 additions and 38 deletions

View File

@@ -1,11 +1,11 @@
package template
import (
"crypto/md5"
"errors"
"fmt"
"html/template"
"io"
"crypto/md5"
"strings"
"github.com/GeertJohan/go.rice"
@@ -99,7 +99,7 @@ func init() {
h := md5.New()
io.WriteString(h, mainjs)
jshash := fmt.Sprintf("%x", h.Sum(nil))
base = strings.Replace(base, "main.js", "main.js?h=" + jshash, 1)
base = strings.Replace(base, "main.js", "main.js?h="+jshash, 1)
// extract the base form template as a string
form, err := box.String("form.html")