Versions in this module Expand all Collapse all v1 v1.3.0 Dec 13, 2017 Changes in this version type ClientConfig + PingFrequency time.Duration + PingTimeout time.Duration v1.2.0 Aug 18, 2017 Changes in this version type ClientConfig + SendBurst int + SendLimit time.Duration v1.1.0 Jan 17, 2017 Changes in this version type Client + func (c *Client) FromChannel(m *Message) bool v1.0.1 Jan 9, 2017 Changes in this version + func MaskToRegex(rawMask string) (*regexp.Regexp, error) v1.0.0 Jan 6, 2017 Changes in this version + var ErrMissingCommand = errors.New("irc: Missing message command") + var ErrMissingDataAfterPrefix = errors.New("irc: No message data after prefix") + var ErrMissingDataAfterTags = errors.New("irc: No message data after tags") + var ErrZeroLengthMessage = errors.New("irc: Cannot parse zero-length message") + type Client struct + func NewClient(rwc io.ReadWriter, config ClientConfig) *Client + func (c *Client) CurrentNick() string + func (c *Client) Run() error + type ClientConfig struct + Handler Handler + Name string + Nick string + Pass string + User string + type Conn struct + func NewConn(rw io.ReadWriter) *Conn + type Handler interface + Handle func(*Client, *Message) + type HandlerFunc func(*Client, *Message) + func (f HandlerFunc) Handle(c *Client, m *Message) + type Message struct + Command string + Params []string + func MustParseMessage(line string) *Message + func ParseMessage(line string) (*Message, error) + func (m *Message) Copy() *Message + func (m *Message) FromChannel() bool + func (m *Message) String() string + func (m *Message) Trailing() string + type Prefix struct + Host string + Name string + User string + func ParsePrefix(line string) *Prefix + func (p *Prefix) Copy() *Prefix + func (p *Prefix) String() string + type Reader struct + DebugCallback func(string) + func NewReader(r io.Reader) *Reader + func (r *Reader) ReadMessage() (*Message, error) + type TagValue string + func ParseTagValue(v string) TagValue + func (v TagValue) Encode() string + type Tags map[string]TagValue + func ParseTags(line string) Tags + func (t Tags) Copy() Tags + func (t Tags) GetTag(key string) (string, bool) + func (t Tags) String() string + type Writer struct + DebugCallback func(line string) + func NewWriter(w io.Writer) *Writer + func (w *Writer) Write(line string) error + func (w *Writer) WriteMessage(m *Message) error + func (w *Writer) Writef(format string, args ...interface{}) error Incompatible versions in this module v2.1.0+incompatible Apr 11, 2018 v2.0.0+incompatible Dec 13, 2017 Other modules containing this package github.com/go-irc/irc/v2 github.com/go-irc/irc/v4