func validEvent(args []string) bool {
	var set []string
	for _, e := range args {
		if e == "limit" || e == "msg" {
			set = append(set, e)
		}
	}
	if len(set) != 2 {
		return false
	}
	return true
}
// validEvent will check if the user set enough fields with valid naming.
//
// i.e. a validEvent must have two keywords (ONLY), limit and msg
validEvent will check if the user set enough fields with valid naming.

i.e. a validEvent must have two keywords (ONLY), limit and msg
// validEvent will check if the user set enough fields with valid naming . // // i . e . a validEvent must have two keywords ( ONLY ) limit and msg
func validEvent(args []string) bool {
	var set []string
	for _, e := range args {
		if e == "limit" || e == "msg" {
			set = append(set, e)
		}
	}
	if len(set) != 2 {
		return false
	}
	return true
}
func validEvent ( args [ ] string ) bool { var set [ ] string for _ , e := range args { if e == " " || e == " " { set = append ( set , e ) } } if len ( set ) != 2 { return false } return true }
validEvent will check if the user set enough fields with valid naming.
validEvent will check if the user set enough fields with valid naming .