func validTrade(cmds []string) bool {
	var tmp []string
	for _, i := range cmds {
		if i == "item" || i == "msg" {
			tmp = append(tmp, i)
		}
	}
	return len(tmp) == 2
}
// validTrade checks if the given command contains the two keywords:
// item & msg
validTrade checks if the given command contains the two keywords:
item & msg
// validTrade checks if the given command contains the two keywords : // item & msg
func validTrade(cmds []string) bool {
	var tmp []string
	for _, i := range cmds {
		if i == "item" || i == "msg" {
			tmp = append(tmp, i)
		}
	}
	return len(tmp) == 2
}
func validTrade ( cmds [ ] string ) bool { var tmp [ ] string for _ , i := range cmds { if i == " " || i == " " { tmp = append ( tmp , i ) } } return len ( tmp ) == 2 }
validTrade checks if the given command contains the two keywords:
item & msg
validTrade checks if the given command contains the two keywords : item & msg