From e02773bbebad8c9d76701db50430d13f81ed81d7 Mon Sep 17 00:00:00 2001 From: claudemiro Date: Fri, 4 Mar 2016 08:32:39 -0300 Subject: [PATCH] function init is not necessary --- utils/utils.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/utils/utils.go b/utils/utils.go index 51b4ce2..6be787d 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -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 {