code: func (a *VppAdapter) GetMsgID(msgName string, msgCrc string) (uint16, error) {
  	switch msgName {
  	case "control_ping":
  		return 100, nil
  	case "control_ping_reply":
  		return 101, nil
  	case "sw_interface_dump":
  		return 200, nil
  	case "sw_interface_details":
  		return 201, nil
  	}
  
  	a.access.Lock()
  	defer a.access.Unlock()
  
  	msgID, found := a.msgNameToIds[msgName]
  	if found {
  		return msgID, nil
  	}
  
  	a.msgIDSeq++
  	msgID = a.msgIDSeq
  	a.msgNameToIds[msgName] = msgID
  	a.msgIDsToName[msgID] = msgName
  
  	return msgID, nil
  }
docs: // GetMsgID returns mocked message ID for the given message name and CRC.