mirror of
https://github.com/IllusionMan1212/gorc.git
synced 2026-10-24 02:12:33 +00:00
refactor parser
This commit is contained in:
+9
-4
@@ -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 --- */
|
||||
|
||||
Reference in New Issue
Block a user