code: func findMessageByEnumName(s string) (*dotaMessage, bool) {
  	for _, t := range messageTypes {
  		if s == t.enumName {
  			return t, true
  		}
  	}
  	return nil, false
  }
docs: // findMessageByEnumName finds a message type by enum name (ex. EDemoCommands)