Testing util functions

This commit is contained in:
claudemiro
2016-03-07 08:02:37 -03:00
parent edabc10008
commit 03483592fc
2 changed files with 74 additions and 9 deletions
+5 -1
View File
@@ -15,7 +15,11 @@ import (
"strings"
)
var validChannelName *regexp.Regexp = regexp.MustCompile("^[A-Za-z0-9_\\-=@,.;]+$")
var validChannelName *regexp.Regexp
func init() {
validChannelName = regexp.MustCompile("^[A-Za-z0-9_\\-=@,.;]+$")
}
// HashMAC Calculates the MAC signing with the given key and returns the hexadecimal encoded Result
func HashMAC(message, key []byte) string {