use the hex trick here as well

This commit is contained in:
Mark McGranaghan 2012-10-10 15:41:11 -07:00
parent 0cedf9b7d4
commit 973ace22a0

View File

@ -2,7 +2,6 @@ package main
import (
"crypto/sha1"
"encoding/hex"
"fmt"
"github.com/russross/blackfriday"
"io/ioutil"
@ -52,7 +51,7 @@ func sha1Sum(s string) string {
h := sha1.New()
h.Write([]byte(s))
b := h.Sum(nil)
return hex.EncodeToString(b)
return fmt.Sprintf("%x", b)
}
func mustReadFile(path string) string {