ircmsg

package module
v0.0.0-...-1ef315f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2016 License: MIT Imports: 4 Imported by: 0

README

ircmsg

An IRC message parsing library for Go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CannotParseMessageError = errors.New("Message cannot be parsed; is not a valid RFC2812 IRC message")

Functions

This section is empty.

Types

type Message

type Message struct {
	Prefix   string
	Nick     string
	Ident    string
	Host     string
	Command  string
	Trail    string
	Params   []string
	SentAt   time.Time
	RawMsg   string
	IsParsed bool
}

func ParseMessage

func ParseMessage(rawMsg string) (*Message, error)

Parses a message string from an IRC server. Returns a Message pointer.

func (*Message) GetDMString

func (m *Message) GetDMString(newMsg string) string

func (*Message) String

func (m *Message) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL