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