Fix lint suggestions

This commit is contained in:
claudemiro
2016-01-16 21:20:23 -02:00
parent cad813e729
commit 3fc072373a
9 changed files with 25 additions and 25 deletions
+2 -1
View File
@@ -23,7 +23,7 @@ func HashMAC(message, key []byte) string {
return hex.EncodeToString(expected)
}
// Generate a new random Hash
// GenerateSessionID Generate a new random Hash
func GenerateSessionID() string {
MAX := 999999999
rand.Seed(time.Now().Unix())
@@ -31,6 +31,7 @@ func GenerateSessionID() string {
return fmt.Sprintf("%d.%d", rand.Intn(MAX), rand.Intn(MAX))
}
// IsChannelNameValid Verify if the channel name is valid
func IsChannelNameValid(channelName string) bool {
matched, err := regexp.MatchString("^[A-Za-z0-9_\\-=@,.;]+$", channelName)