refactor parser

This commit is contained in:
2021-10-20 16:21:26 +03:00
parent 8f56877d69
commit d2f98102ef
3 changed files with 40 additions and 75 deletions
+9 -4
View File
@@ -78,10 +78,15 @@ const (
/* --- IRC Message --- */
type IRCMessage struct {
Tags map[string]string // starts with @ | Optional
Source string // starts with : | Optional
Command string // can either be a string or a numeric value | Required
Parameters []string // Optional (Dependant on command)
Tags []Tag // starts with @ | Optional
Source string // starts with : | Optional
Command string // can either be a string or a numeric value | Required
Parameters []string // Optional (Dependant on command)
}
type Tag struct {
key string
value string
}
/* --- Channel Types --- */