function init is not necessary

This commit is contained in:
claudemiro
2016-03-04 08:32:39 -03:00
parent 5fa621d743
commit e02773bbeb
+1 -5
View File
@@ -15,11 +15,7 @@ import (
"strings"
)
var validChannelName *regexp.Regexp
func init() {
validChannelName = regexp.MustCompile("^[A-Za-z0-9_\\-=@,.;]+$")
}
var validChannelName *regexp.Regexp = 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 {