Tranformation d'une commande (chaine de char) en tableau. Il est donc désormais possible de lire une commande et l'interprêter

This commit is contained in:
2022-02-22 10:52:07 +01:00
parent 09d4834cdf
commit 233f7ac582
5 changed files with 16 additions and 9 deletions

View File

@@ -39,7 +39,7 @@ func (repo ProtocolRepository) ExecuteReader(data string) (string, bool) {
for _, reader := range repo.protocolReaders {
if (*reader).Match(data) { // Exécuter si match
// Récupérer résultat à renvoyer (Donc donner ProtocolRepository aux reader ?!)
return (*reader).Execute(data), true
return (*reader).Execute(data)
}
}