case "/w":
sendMessage(chatid, " — ачивка анлокед")
package main
import (
"fmt"
"regexp"
)
func main() {
var regex = regexp.MustCompile(`^([a-z]*)\/w`)
s := "lol/w"
switch {
case regex.MatchString(s):
fmt.Println("OK")
default:
fmt.Println("NOT OK")
}
}